jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.36k stars 215 forks source link

The splash screen hasn't changed. #630

Closed tempdeltavalue closed 11 months ago

tempdeltavalue commented 12 months ago

Android studio, Pixel 3a emulator

part of yaml

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.2
  qr_flutter: ^4.1.0
  flutter_native_splash: ^2.1.3+1

flutter_native_splash:
  color: "#FAE3E3"
  image: assets/temp.png
  android: true
  ios: true

dart run flutter_native_splash:create

logs:

Building package executable... (1.1s) Built flutter_native_splash:create. [Android] Creating default splash images [Android] Updating launch background(s) with splash image path... [Android] - android/app/src/main/res/drawable/launch_background.xml [Android] - android/app/src/main/res/drawable-v21/launch_background.xml [Android] Updating styles... [Android] - android/app/src/main/res/values-v31/styles.xml [Android] - android/app/src/main/res/values-night-v31/styles.xml [Android] - android/app/src/main/res/values/styles.xml [Android] - android/app/src/main/res/values-night/styles.xml [iOS] Creating images [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible Web folder not found, skipping web splash update... . ✅ Native splash complete. Now go finish building something awesome! 💪 You rock! 🤘🤩 Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash

BodenTide commented 11 months ago

Me too, is there any solution?

jonbhanson commented 11 months ago

Are you trying to add a splash for Android 12 or later? I don't see the android_12 config section in your yaml.

tempdeltavalue commented 11 months ago

@jonbhanson I've change my pubspec.yaml to

flutter_native_splash: color: "#FAE3E3" image: assets/holy_coffee_logo.png android: true ios: true

android_12: color: "#FAE3E3" image: assets/holy_coffee_logo.png

flutter clean flutter pub get dart run flutter_native_splash:create

and this is fixed the issue, thank you