status_polling 1.0.0
status_polling: ^1.0.0 copied to clipboard
A Flutter widget that provides status polling functionality with visibility and scroll detection to optimize refresh operations.
status_polling #
Features #
- Manage the lifecycle of the timer.
- Listen for interface visibility, and pause refreshing when the interface is not visible.
- Listen for scrolling status, and pause refreshing when scrolling.
- Execute the specific refreshing logic through callbacks.
Installation #
Add the dependency in pubspec.yaml:
dependencies:
status_polling: ^1.0.0
Then run:
flutter pub get
Usage #
Please check the example.
Example #
See the example directory for a complete sample app.
License #
The project is under the MIT license.