From 525030c3caccef27a1da44605d28e259dc1cc17c Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Mon, 06 Apr 2026 12:33:53 +0200
Subject: [PATCH] feat: animated splash screen with P logo reveal and plane fly-in
---
lib/main.dart | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/lib/main.dart b/lib/main.dart
index 5bab6bb..af7844b 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -8,6 +8,7 @@
import 'providers/providers.dart';
import 'services/audio_service.dart';
import 'services/purchase_service.dart';
+import 'screens/splash_screen.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
@@ -48,6 +49,7 @@
class _PAILotAppState extends ConsumerState<PAILotApp> {
late final GoRouter _router;
+ bool _showSplash = true;
@override
void initState() {
@@ -78,6 +80,17 @@
themeMode: themeMode,
routerConfig: _router,
debugShowCheckedModeBanner: false,
+ builder: (context, child) {
+ return Stack(
+ children: [
+ child ?? const SizedBox.shrink(),
+ if (_showSplash)
+ SplashScreen(onComplete: () {
+ if (mounted) setState(() => _showSplash = false);
+ }),
+ ],
+ );
+ },
);
}
}
--
Gitblit v1.3.1