flutterwebapp_reload_detector
0.0.1, released 4 years ago by rohitsangwan.in
Detects browser page reload in Flutter web apps.
WASM-ready
What it does
It listens for a browser refresh event and runs a callback. The callback can be used to reset state or navigate to a safe page.
AI-written summary of version 0.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to handle a full page refresh in a Flutter web app
- You want to prevent crashes caused by lost navigation state
Skip it when
- You are not targeting web
- You already have a custom reload handler
Strengths
- No external dependencies
- Very small footprint
- Easy to integrate
Weaknesses
- Only works on web
- No documentation beyond README
- No tests or changelog beyond initial release
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
WebAppReloadDetector.onReload(() {
print('Web Page Reloaded');
});