jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.34k stars 214 forks source link

splashscreen FlutterNativeSplash.remove(); not working . #740

Open AhmedHammad0900 opened 1 week ago

AhmedHammad0900 commented 1 week ago

Attention: If you open a bug report without sufficient details, it will be closed. Is your question related to Android 12? Please check the notes on Android 12 first (https://pub.dev/packages/flutter_native_splash#android-12-support).

Describe the bug

FlutterNativeSplash.remove();

Configuration

flutter_native_splash:
  color: "#367CFF"
  android: true
  ios: true
  fullscreen: true
  image: assets/splash_images/splashLogo.png

android_12:
  image: assets/splash_images/splashLogo.png
  color: "#367CFF"

Device (please complete the following information):

To Reproduce When I do a preserve for splashscreen it remains , but when I try to remove it with remove() it doesn't work

WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized(); // FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);

when I use

FlutterNativeSplash.remove(); it remains

hadiarshad6767 commented 1 week ago

where are you using?? Please show me code!!!

jonbhanson commented 1 day ago

You will need to show more code. Have you put a breakpoint on the .remove() method to see if it is called?