Page Essen - Mit Provider

This commit is contained in:
Jonas Braus committed 2024-11-21 15:26:12 +01:00
1 parent be341b7c69
commit 4a1fc19349
4 files changed
+101 -8

No files matched your search

+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();
}
}