android: really fix app getting stuck in splash screen
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user