22 lines
444 B
Dart
22 lines
444 B
Dart
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();
|
|
}
|
|
} |