any_refreshable_widget 0.1.1
any_refreshable_widget: ^0.1.1 copied to clipboard
A powerful Flutter package providing pull-to-refresh functionality for any widget, with support for single/multiple futures, custom indicators, and comprehensive error handling.
0.1.1 #
- Custom indicator improvements - Fixed custom indicator display by replacing deprecated
RefreshIndicator.noSpinner
with transparent styling approach (support much more version of flutter & dart) - Version requirements update - Updated minimum SDK version to 2.19.0 and Flutter version to 3.7.0 for better compatibility
0.1.0 #
- Lifecycle callbacks - Added
onBeforeRefresh
andonAfterRefresh
callbacks with flexible sync/async support - Concurrency control - Added
RefreshConcurrency
enum to control future execution (sequential/concurrent) - Sequential execution - New option to execute multiple futures one after another (now default behavior)
- Enhanced documentation - Comprehensive examples for lifecycle callbacks and concurrency modes
- Improved examples - Updated example app with better UI and clearer demonstrations
0.0.2 #
- Improved compatibility - Updated SDK constraint to support broader range of Dart versions (>=2.17.0 <4.0.0)
- Flutter version update - Updated minimum Flutter version requirement to 3.0.0 for better stability
- Example project updates - Synchronized version constraints across main package and example project
0.0.1 #
- Initial release - A comprehensive Flutter widget that provides pull-to-refresh functionality for any content
- Multi-future support - Handle multiple asynchronous operations concurrently with a single refresh action
- Universal compatibility - Works with any widget type (ScrollView, non-scrollable content, custom widgets)
- Smart scrollable detection - Automatically wraps non-scrollable content to enable pull-to-refresh
- Customizable refresh indicator - Support for custom colors, background, displacement, and stroke width
- Custom indicator widget - Option to provide completely custom refresh indicator instead of default
- Adaptive design - Uses platform-appropriate refresh indicators (iOS/Android)
- Loading state management - Built-in loading and error state handling with reactive notifications
- Flexible notification handling - Customizable scroll notification predicates for refresh triggering
- Two widget variants - Main
AnyRefreshableWidget
for multiple futures andAnyRefreshableWidget.single
for single operations - Error handling - Captures and exposes the first error encountered during refresh operations
- Animation support - Smooth animations for custom indicators with built-in animation controller