Closed tempdeltavalue closed 11 months ago
Me too, is there any solution?
Are you trying to add a splash for Android 12 or later? I don't see the android_12
config section in your yaml.
@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
Android studio, Pixel 3a emulator
part of yaml
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