Giga Push (it is 1:30 am and I am tired)
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?
This commit is contained in:
@@ -2,17 +2,17 @@ import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
class SpezielleErnaehrungProvider extends ChangeNotifier {
|
||||
double ratingSitzmoeglichkeit = 0;
|
||||
double ratingKeineAhnung = 0;
|
||||
double frage1 = 0;
|
||||
double frage2 = 0;
|
||||
String freiText = "";
|
||||
|
||||
void setRatingSitzmoeglichkeit(double rating) {
|
||||
ratingSitzmoeglichkeit = rating;
|
||||
void setRatingFrage1(double rating) {
|
||||
frage1 = rating;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void setRatingKeineAhnung(double rating) {
|
||||
ratingKeineAhnung = rating;
|
||||
void setRatingFrage2(double rating) {
|
||||
frage2 = rating;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ class SpezielleErnaehrungProvider extends ChangeNotifier {
|
||||
|
||||
void resetAllFields(){
|
||||
freiText = "";
|
||||
ratingSitzmoeglichkeit = 0;
|
||||
ratingKeineAhnung = 0;
|
||||
frage1 = 0;
|
||||
frage2 = 0;
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user