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:
Ali
2024-11-29 01:36:46 +01:00
parent ba79191a78
commit 60eb2785ee
9 changed files with 522 additions and 51 deletions
@@ -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();
}
}