android: really fix app getting stuck in splash screen

This commit is contained in:
2025-10-15 13:40:08 +02:00
parent 9878a543e5
commit 6c196454fe
2 changed files with 4 additions and 6 deletions

View File

@@ -35,8 +35,6 @@ android {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
isShrinkResources = false
// isMinifyEnabled = false // avoid app getting stuck in splash screen
}
}
}

View File

@@ -19,6 +19,10 @@ Future<void> main() async {
}
});
// setup for flutter_fullscreen
WidgetsFlutterBinding.ensureInitialized(); // Needs to be initialized first, otherwise app gets stuck in splash screen
await FullScreen.ensureInitialized();
pdfrxFlutterInitialize(); // Needed especially for web
if (!kIsWeb) {
@@ -26,10 +30,6 @@ Future<void> main() async {
Hive.init(dir.path); // Needed only if not web
}
// setup for flutter_fullscreen
WidgetsFlutterBinding.ensureInitialized();
await FullScreen.ensureInitialized();
runApp(const MyApp());
}