flutterwebapp_reload_detector

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutterwebapp reload detector

FlutterWebApp Reload Detector #
This library can tell if user clicks on the refresh button of the Browser
Getting started #
add this package to pubspec.yaml file
flutterwebapp_reload_detector: 0.0.1
copied to clipboard
Usage #
Call WebAppReloadDetector.onReload on Top Level Widget only Once , check \example app
WebAppReloadDetector.onReload(() {
print('Web Page Reloaded')
});
copied to clipboard
Why We Need this ? #
if User refreshes WebApp , Flutter Web Keeps the route path saved or your project might crash because of this reload in middle of WebApp,
to prevent this we can set WebAppReloadDetector.onReload to do some actions, for example , take user back to home page.
Also , this will not include the case of HotReload or HotRefresh , it will only trigger if user Refresh the Browser Page

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.