Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove flutter_native_splash from app?

Tags:

flutter

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.

like image 879
Dhaval Chaudhari Avatar asked Apr 28 '26 18:04

Dhaval Chaudhari


2 Answers

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

  • added again to the project
  • Then run the flutter pub run flutter_native_splash:remove in terminal

error:

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

like image 75
dubinsky Avatar answered May 01 '26 10:05

dubinsky


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>
like image 31
yunusemreyakisan Avatar answered May 01 '26 10:05

yunusemreyakisan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!