| 1 | import 'package:flutter/material.dart'; |
| 2 | import 'package:path_provider/path_provider.dart'; |
| 3 | |
| 4 | import 'src/library/game_library.dart'; |
| 5 | import 'src/library/home_screen.dart'; |
| 6 | |
| 7 | Future<void> main() |
| 8 | WidgetsFlutterBinding.ensureInitialized(); |
| 9 | final documents = await getApplicationDocumentsDirectory |
| 10 | runApp(SplashyGbaApp(library: |
| 11 | } |
| 12 | |
| 13 | class SplashyGbaApp extends StatelessWidget |
| 14 | const SplashyGbaApp({super |
| 15 | |
| 16 | final GameLibrary library; |
| 17 | |
| 18 | @override |
| 19 | Widget build(BuildContext |
| 20 | return MaterialApp( |
| 21 | title: 'SplashyGBA', |
| 22 | theme: ThemeData( |
| 23 | colorScheme: ColorScheme.fromSeed(seedColor |
| 24 | ), |
| 25 | darkTheme: ThemeData( |
| 26 | colorScheme: ColorScheme.fromSeed( |
| 27 | seedColor: Colors.indigo, |
| 28 | brightness: Brightness.dark, |
| 29 | ), |
| 30 | ), |
| 31 | home: HomeScreen(library: library), |
| 32 | ); |
| 33 | } |
| 34 | } |