simple dashboard

This commit is contained in:
marcoabat
2023-08-05 13:50:12 +02:00
parent bd79115ea9
commit c5c00b999e
3 changed files with 56 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:supabase_flutter/supabase_flutter.dart';
import '../assets/example_data.dart' as ed;
import '../models/checklist.dart';
class DbHelper {
static late final SupabaseClient _client;
@@ -20,6 +22,12 @@ class DbHelper {
);
}
static Future<List<Checklist>> get fetchChecklist async {
//TODO replace example data
await Future.delayed(const Duration(seconds: 2));
return ed.checklists;
}
static Stream<AuthState> get authChangeEventStream =>
_client.auth.onAuthStateChange;
}