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