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

Remove Splash Screen on WEB #570

Closed
carpentierchloe opened this issue Jul 2, 2023 · 3 comments
Closed

Remove Splash Screen on WEB #570

carpentierchloe opened this issue Jul 2, 2023 · 3 comments

Comments

@carpentierchloe
Copy link

The splash screen is well working on ANDROID and IOS, but on the WEB the splash screen does not desappear.

How to fix it or do not show the splash screen on Web ?

I have this config in Yaml.

flutter_native_splash:
web: false

Thank you very much.

@carpentierchloe carpentierchloe changed the title Remove Web Splash Screen Remove Splash Screen on WEB Jul 2, 2023
@jonbhanson
Copy link
Owner

Do you want to remove the splash screen from your web app altogether, or do you mean you want the splash screen to appear on web and then be removed?

@KnoerleMan
Copy link

I guess she means the splash screen appears but is not removed, since i run into the same problem right now.
On my application the "main" function runs the app with a so called "AppWidget". This AppWidget returns the "MaterialApp.router" widget. The initial page of the router is a "SplashPage" which invokes some async function which handles the application startup process by a so called "ApplicationController" and returns an emtpy Container widget, which is not shown due to the splash screen (which is what i want).
When the startup is done the splash screen is removed by the ApplicationController and we navigate to either a sign in page or the apps home page if already signed in (firebase auth).
This all works fine until we reload the page, since we are on another page route than. This means the "startup" process is not triggered again and the splash screen will never be removed.

@jonbhanson
Copy link
Owner

Duplicate of #536. Feel free to add any additional information on that ticket.

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