Title(タイトル) Splash screen does not appear, only Flutter logo is shown
I’m using flutter_native_splash on a new Flutter project, and my splash screen does not appear.
Instead, the Flutter logo is shown on startup, and then the app goes directly to the main screen.
I followed all instructions on the README and even manually edited the AndroidManifest.xml and launch_background.xml.
Environment:
- Flutter version: 3.19.x
- Plugin version: flutter_native_splash 2.4.6
- Android emulator: Pixel 7 (API 34)
- Android SDK: NDK 27.0.12077973
What could be causing the Flutter logo to appear instead of my splash screen?
Thank you for your support!
same is happening to me... The splash screen is showing my appicon instead of the splash screen
“Is there any solution to this?”
@ghost-cat-code Did you try running dart run flutter_native_splash:create?
any solution to this? same is happening to me
I was able to get the splash screen working.
I created two images, the logo and branding. The logo appears in the center of the below image and the branding appears at the bottom for my Meals app.
My branding.png is 360 x 189 My logo.png is 960 x 960
After modifying your pubspec.yaml must run these commands in terminal:
flutter clean
flutter pub get
flutter pub run flutter_native_splash:create
My pubspec.yaml
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
flutter_native_splash: ^2.4.6
flutter_native_splash:
image: assets/logos/logo.png
color: '#1a120d'
android_12:
color: '#1a120d'
image: 'assets/logos/logo.png'
branding: assets/logos/branding.png
I hope this helps others, this a splendid package!
@ghost-cat-code, have you configured the android_12 section of the config?