status_polling 1.0.0 copy "status_polling: ^1.0.0" to clipboard
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.

0
likes
0
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that provides status polling functionality with visibility and scroll detection to optimize refresh operations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, scroll_detector, visibility_detector_widget

More

Packages that depend on status_polling