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.

Libraries

status_polling