-
Notifications
You must be signed in to change notification settings - Fork 936
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
How to have custom page load instead of "Web Page not available" in case of no internet connection #348
Comments
You could use this package to check if there is an available connection and if it's not you could lauch the webview with a static page. |
I am trying to launch a custom static html page instead of my URL(my website 'wwww.duevents.in') if there is no internet connection, since the "Web Page not available" page doesn't look very professional. I am using this to check the internet on the device and it is working fine ('connectionStatus ==true' when the internet is connected and vice versa):
This is the code where I have alternate URLs to load if there is no internet connection:
Somehow it always shows me the HTML Page with this code no matter if the device has an internet connection or not. Please tell me what is wrong here. Link to issue first reported: Please help me with this, I'll be grateful. |
The only thing that I could think of is that the |
@cTatu Thanks a lot for your help. This would not have been possible without you. Btw, the issue of only the html page loading was solved using a FutureBuilder. |
I want the application to look as authentic as possible. So I want a custom page or just my website loaded (offline version, like its in google chrome mobile)
The text was updated successfully, but these errors were encountered: