flutter_native_splash icon indicating copy to clipboard operation
flutter_native_splash copied to clipboard

Title(タイトル) Splash screen does not appear, only Flutter logo is shown

Open ghost-cat-code opened this issue 8 months ago • 6 comments

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!

ghost-cat-code avatar May 12 '25 04:05 ghost-cat-code

same is happening to me... The splash screen is showing my appicon instead of the splash screen

MelissaMashiro avatar May 21 '25 15:05 MelissaMashiro

“Is there any solution to this?”

ghost-cat-code avatar May 29 '25 04:05 ghost-cat-code

@ghost-cat-code Did you try running dart run flutter_native_splash:create?

radeckid avatar Jun 02 '25 17:06 radeckid

any solution to this? same is happening to me

rico1987 avatar Jun 03 '25 09:06 rico1987

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

Image

Image

Image

I hope this helps others, this a splendid package!

longtimedeveloper avatar Jun 05 '25 14:06 longtimedeveloper

@ghost-cat-code, have you configured the android_12 section of the config?

jonbhanson avatar Oct 17 '25 02:10 jonbhanson