I used flutter_native_splash: ^1.3.2 for splash screen, i want to remove this splash screen.
Below code is in pubspec.yaml file.
flutter_native_splash:
color: "#ffffff"
image: assets/images/AppLogo.png
android: true
ios: true
I used flutter pub run flutter_native_splash:remove command to remove,
And i also remove flutter_native_splash (Above code) dependency from pubspec.yamlfile.
And then i clean my project using flutter clean command.
then get the packages.
So now when i run the app it shows the splash screen which i removed.
so please Help me.
Thank you.
Worked for me:
flutter pub run flutter_native_splash:remove
but at first I got an error that I donβt have such a package
because before that I tried to manually remove this package
flutter pub run flutter_native_splash:remove in terminalerror:
flutter pub run flutter_native_splash:remove Could not find package "flutter_native_splash". Did you forget to add a dependency? pub finished with exit code 65
Required settings for Android ππΌ
β First, we find the place in the image
Android Directory Image
β We find styles.xml files in these files
styles.xml files
β We remove the parts in each file that add the splash screen by default
Part to be removed
β We add the following code to the deleted places as in the image ππΌ
Part to be added
<!-- Disabled Default Splash -->
<item name="android:windowIsTranslucent">true</item>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With