Closed RaulLit closed 1 month ago
After updating pubspec.yaml file as follows:
flutter_native_splash:
color: "#F06610"
image: assets/images/img_splash.png
color_dark: "#F06610"
image_dark: assets/images/img_splash.png
android_gravity: fill
ios_content_mode: scaleAspectFill
android_12:
color: "#F06610"
image: assets/images/img_splash.png
color_dark: "#F06610"
image_dark: assets/images/img_splash.png
android_gravity: fill
web: false
android: true
ios: true
I get this as the splash screen
I want my img_splash.png
file to take up the entire screen.
As stated in the readme, Android 12 does not support a background image.
Ahh... Right. An overlook from my side. Thank you @jonbhanson
Describe the bug After setting the
background_image:
property and creating the splash screen usingdart run flutter_native_splash:create
I could only see a black screen instead of my background image while launching the app. I've mentioned all the steps I took in detail below in the To Reproduce section.Configuration When I installed flutter_native_splash using
flutter pub add flutter_native_splash
the following message appearedFollowing is my pubspec.yaml file:
Device:
To Reproduce Steps to reproduce the behavior, using the example app:
img_splash.png
underassets/image
folder.flutter clean
flutter pub get
dart run flutter_native_splash:create
flutter run
Addition Information I tried setting the following afterwards
still didn't work