calorimeter/lib/utils/enter_food_controller.dart

13 lines
261 B
Dart
Raw Permalink Normal View History

import 'package:flutter/material.dart';
class EnterFoodController extends ChangeNotifier {
String name = "";
String kcalPer100g = "";
void set(String newName, String newKcal) {
name = newName;
kcalPer100g = newKcal;
notifyListeners();
}
}