Page Essen - Mit Provider

This commit is contained in:
Jonas Braus
2024-11-21 15:26:12 +01:00
parent be341b7c69
commit 4a1fc19349
4 changed files with 101 additions and 8 deletions
+22
View File
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
class EssenProvider extends ChangeNotifier {
double ratingGeschmack = 0;
double ratingQuali = 0;
String freiText = "";
void setRatingGeschmack(double rating) {
ratingGeschmack = rating;
notifyListeners();
}
void setRatingQuali(double rating) {
ratingQuali = rating;
notifyListeners();
}
void setFreiText(String text) {
freiText = text;
notifyListeners();
}
}