Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AhmedHammad0900 opened this issue Oct 10, 2024 · 2 comments
Open

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

AhmedHammad0900 opened this issue Oct 10, 2024 · 2 comments

Comments

@AhmedHammad0900
Copy link

AhmedHammad0900 commented Oct 10, 2024

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):

  • Device: [Android Tested]
  • OS: [e.g. iOS8.1]

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
Copy link

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

@jonbhanson
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants