Backend Structure implemented All Ratings will be pulled and validated Pop Up notfies user about all his ratings If confirmed, data will be send to the supabase server (if any data was found) No comments were made, who else needs to read this?
30 lines
533 B
Dart
30 lines
533 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
|
|
class SpezielleErnaehrungProvider extends ChangeNotifier {
|
|
double frage1 = 0;
|
|
double frage2 = 0;
|
|
String freiText = "";
|
|
|
|
void setRatingFrage1(double rating) {
|
|
frage1 = rating;
|
|
notifyListeners();
|
|
}
|
|
|
|
void setRatingFrage2(double rating) {
|
|
frage2 = rating;
|
|
notifyListeners();
|
|
}
|
|
|
|
void setFreiText(String text) {
|
|
freiText = text;
|
|
notifyListeners();
|
|
}
|
|
|
|
void resetAllFields(){
|
|
freiText = "";
|
|
frage1 = 0;
|
|
frage2 = 0;
|
|
notifyListeners();
|
|
}
|
|
} |