Closed meet7-sagar23 closed 1 year ago
# To restore Flutter's default white splash screen, run the following command in the terminal:
# flutter pub run flutter_native_splash:remove
Tried that, but not working at all. @jonbhanson
# To restore Flutter's default white splash screen, run the following command in the terminal: # flutter pub run flutter_native_splash:remove
Getting this error while executing above command.
Restoring Flutter's default native splash screen... Unhandled exception: LateInitializationError: Field '_flavorHelper@20018413' has not been initialized.
pub finished with exit code 255
Worst package. I executed the flutter pub run flutter_native_splash:remove
command, yet the background image that I used to set up native splash is visible. You guys should understand this problem. Why isn't there any kind of revert or follow-up on the same. I've trying to fix this problem from last 1 month. Still I can't remove the flutter_native_splash
from my flutter project. @jonbhanson, this was for you. Please take a look into it asap. This is seriously sheer waste of time nothing more than that. And you guys call yourself developer. YOU'RE NOTHING BUT JUST A BUNCH OF STUPID CODERS NOT DEVELOPERS
thats unnecessarily rude.
I dont know about fixing the inbuilt removal, but the easiest way of removing the splash screen is by (make sure your VCS is engaged):
flutter create your_project
againby recreating your android folder with the flutter create
command, you are resetting to the default.
You then just have to restore any files you have adjusted yourself, if any.
You can try commands, such as flutter clean
, which will remove these splash screens and old cache files. And then re-run your project using flutter run
command.
I had reopened this ticket to investigate the problem. However, seeing @meet7-sagar23 edit their comment with insults, I will not be helping. @pushkar-appdid if you are still having a problem, please open an new ticket and include your configuration.
just make sure all the code related to flutter_native_splash still remains in projected not in commented form
For me, I had to delete also the build / ios / android (and othe platform) folders and remove the flutter_native_splash reference in pubspec.yaml. My steps were: 1) in Terminal run "flutter pub run flutter_native_splash:remove" 2) run "flutter pub remove flutter_native_splash" 3) delete flutter_native_splash reference in pubspec.yaml 4) delete folders: build / ios / android (and other platform specific folders) 5) run "flutter clean" 6) run "flutter pub get" 7) reenable my platforms (by writting e.g. "Enable android for this project" in the command center
@jonbhanson I would be pissed off over such a d..k comment too but this issue is real and this thread comes up in google search.
if there is an update, please update this thread too
@dvdnhm please open a new ticket with your config details and instructions on how to reproduce this problem and I will take a look at your ticket.
I have already removed
flutter_native_splash
frompubspec.yaml
. Also, the image is also deleted from theassets
folder.Still I am seeing the native splash. How do I revert back to the flutter splash screen?
I think this is simplest way to remove flutter_native_splash
from your project.
Note:
flutter_native_splash
package from your pubspec.yaml
file, need to add again (flutter pub add flutter_native_splash
).flutter_native_splash:
android_12:
Then run this commands
flutter pub run flutter_native_splash:remove
flutter clean
flutter pub get
how can i remove by default native splash screen which is show on android version 12 above?
how can i remove by default native splash screen which is show on android version 12 above?
@zainulabdn you cannot remote the splash screen from Android 12+. "The splash screen experience brings standard design elements to every app launch, but it's also customizable so your app can maintain its unique branding." Splash screens.
I have already removed
flutter_native_splash
frompubspec.yaml
. Also, the image is also deleted from theassets
folder.Still I am seeing the native splash.
How do I revert back to the flutter splash screen?