mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-08-15 15:40:32 +02:00
icons and splash screens
This commit is contained in:
+20
-1
@@ -9,7 +9,26 @@ void main() {
|
||||
runApp(
|
||||
ChangeNotifierProvider(
|
||||
create: (_) => AppState(),
|
||||
child: const FlockMapApp(),
|
||||
child: Consumer<AppState>(
|
||||
builder: (context, appState, _) {
|
||||
if (!appState.isInitialized) {
|
||||
// You can customize this splash/loading screen as needed
|
||||
return MaterialApp(
|
||||
home: Scaffold(
|
||||
backgroundColor: Color(0xFF202020),
|
||||
body: Center(
|
||||
child: Image.asset(
|
||||
'assets/app_icon.png',
|
||||
width: 240,
|
||||
height: 240,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
return const FlockMapApp();
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user