I created a Flutter native splash screen with a PNG image, but it unintentionally displays a splash screen with a green border like the second image below. How can I remove this border? It happens in Android 12 only. There is no border in Android 7.
See the original PNG splash here:
Click here to see image
See the issue here:
Click here to see image
Here is the code in pubspec.yaml
flutter_native_splash:
color: "#FFFFFF"
image: assets/splash_screen/splash.png
android: true
ios: true
Thank you very much!
I tried to remove splash and add new again, but the border is still there.
2
Answers
Finally, I fixed the issue. First of all, I put the configuration for Android 12 as suggested here flutter_native_splash then I change this file content C:UserstrongDesktopevdictionaryandroidappsrcmainresdrawableic_launcher_background. Change the color code from green to white as follows:
Its because the background of the image you are using is not transparent, even though its in png format. Please remove the background of the image and use it.
You can remove the background from the following website https://www.remove.bg/