Cleaned up idk

This commit is contained in:
2024-01-04 21:45:55 +02:00
parent 6a2df6938e
commit dca0c067cb
5 changed files with 8 additions and 12 deletions

View File

@@ -10,13 +10,13 @@ class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
State<MyApp> createState() => MyAppState();
static _MyAppState of(BuildContext context) =>
context.findAncestorStateOfType<_MyAppState>()!;
static MyAppState of(BuildContext context) =>
context.findAncestorStateOfType<MyAppState>()!;
}
class _MyAppState extends State<MyApp> {
class MyAppState extends State<MyApp> {
ThemeMode _theme = ThemeMode.system;
@override