I tried for three days to fix it using multiple solutions here an in GitHub ,the splash screen still freezes only in the release mode flutter 2.10.2.
tested on real device
also this the the used packages
environment:
sdk: ">=2.8.0 <3.0.0"
dependencies:
intl: ^0.17.0
bot_toast: ^4.0.1
cupertino_icons: ^1.0.2
dio: ^4.0.0
url_launcher: ^6.0.12
flutter_form_builder: ^6.0.0
get: ^4.3.8
get_storage:
onesignal_flutter: ^3.2.4
connectivity_plus: ^2.0.2
geolocator: ^7.7.1
flutter:
sdk: flutter
dev_dependencies:
flutter_launcher_icons: ^0.9.2
flutter_native_splash: ^2.0.4
finally I decided to share the verbose hope someone can help
https://github.com/flutter/flutter/issues/98862
CodePudding user response:
Take you real device and connect it to you pc via cable and install release version of you app
Go-to terminal and run
flutter logs
to see what's going onIn some cases, may be permissions are reason. You need to specify them
(don't relax because of default permissions set)
CodePudding user response:
I think there should be 2 things --
first make sure you added the Internet permission and other required permissions in AndroidManifest.xml file
Second if you already defined all the required permissions then try this--
in your app/build.gradle file add these 3 lines
minifyEnabled false
useProguard false
shrinkResources false
in
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
minifyEnabled false
useProguard false
shrinkResources false
}
}
then clean your project and try again I hope this will work and if you still faced that problem check the documentation again of flutter_native_splash package you used, also watch the video of Johannes Milke's tutorial which is already linked in the documentaion.
Thankyou.