flutter_api_state 0.0.3 copy "flutter_api_state: ^0.0.3" to clipboard
flutter_api_state: ^0.0.3 copied to clipboard

A Flutter package that simplifies async UI state handling (loading, success, error, empty) with built-in retry and pull-to-refresh support.

0.0.3 #

  • New: optional pre-flight connectivity check. Set enableNetworkCheck: true to skip the future when offline and show the noNetwork widget instead. Default check uses dart:io DNS lookup on mobile/desktop; web is a no-op. Override via hasNetwork: () async => ... to plug in connectivity_plus or your own logic. Works with enableRetry (tap to recheck) and enablePullToRefresh.

0.0.2 #

  • Fix: enablePullToRefresh: true crashed with "RenderBox was not laid out" when the success child was an already-scrollable widget (e.g. ListView.builder). The widget no longer wraps scrollable children in a SingleChildScrollView; non-scrollable error/empty branches are wrapped in a ListView so pull still works.

0.0.1 #

  • Initial release of flutter_api_state.
  • ApiStateBuilder<T> with loading / error / empty / success branches.
  • EmptyDetector for null / empty list / map / set / string detection.
  • Built-in retry button (enableRetry, optional retryButtonBuilder).
  • Built-in pull-to-refresh (enablePullToRefresh).
2
likes
0
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that simplifies async UI state handling (loading, success, error, empty) with built-in retry and pull-to-refresh support.

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_api_state