average PUUUUSH

This commit is contained in:
Ali
2025-01-15 21:16:41 +01:00
parent e2138439c2
commit 28f93e926d
3 changed files with 171 additions and 6 deletions
+1 -5
View File
@@ -31,10 +31,6 @@ class PageDashboard extends StatelessWidget {
@override
Widget build(BuildContext context) {
var viewDatabaseFunctions = {
0: requestSupabaseTimeSpan,
1: requestSupabaseTimeSpan, //replace with avg function
};
return Scaffold(
appBar: AppBar(
@@ -112,7 +108,7 @@ class PageDashboard extends StatelessWidget {
),
body: FutureBuilder(
future: viewDatabaseFunctions[Provider.of<ViewProvider>(context, listen: false).selectedView]!(
future: requestSupabaseTimeSpan(
Provider.of<TimeProvider>(context).selectedTime
),
builder: (context, snapshot) {