mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-08 17:11:43 +02:00
icons and splash screens
This commit is contained in:
1 parent
63675bd18a
commit
6bf9556c65
57 files changed
+395
-230
No files matched your search
+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