status_polling 1.0.2 copy "status_polling: ^1.0.2" to clipboard
status_polling: ^1.0.2 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
160
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, scroll_detector, visibility_detector_widget

More

Packages that depend on status_polling