make MyApp stateful so the linter fucking shuts up
This commit is contained in:
parent
7bc2d763df
commit
d12c5d0349
|
@ -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<MyApp> createState() => _MyAppState();
|
||||
}
|
||||
|
||||
class _MyAppState extends State<MyApp> {
|
||||
SharedPreferences? prefs;
|
||||
|
||||
Future<bool> _loadPrefs() async {
|
||||
var prefs = await SharedPreferences.getInstance();
|
||||
|
|
Loading…
Reference in a new issue