diff --git a/lib/main.dart b/lib/main.dart index f4fce27..abd6848 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -22,13 +22,18 @@ final api = FeverAPI(); void main() { setupBackgroundTasks(); - runApp(MyApp()); + runApp(const MyApp()); } -class MyApp extends StatelessWidget { - SharedPreferences? prefs; +class MyApp extends StatefulWidget { + const MyApp({super.key}); - MyApp({super.key}); + @override + State createState() => _MyAppState(); +} + +class _MyAppState extends State { + SharedPreferences? prefs; Future _loadPrefs() async { var prefs = await SharedPreferences.getInstance();