Installation
smart_refresher is a powerful Flutter widget designed to provide seamless pull-to-refresh and infinite-scroll loading for any scrollable widget. It is compatible with Flutter 3.x and Dart 3.
-
Add Dependency Add
smart_refresherto yourpubspec.yamlfile:dependencies:smart_refresher: ^1.0.0 -
Install Package Run the following command in your terminal to fetch the package:
Terminal window flutter pub get -
Import the Library Add the import statement to your Dart files where you intend to use the refresher:
import 'package:smart_refresher/smart_refresher.dart';
Platform Support
Section titled “Platform Support”smart_refresher supports all major Flutter platforms out of the box:
| Platform | Support | Status |
|---|---|---|
| Android | ✅ Supported | Full Material 3 Support |
| iOS | ✅ Supported | Native iOS 17 Feel & Haptics |
| Web | ✅ Supported | WASM / CanvasKit Optimized |
| Desktop | ✅ Supported | macOS, Windows, Linux |
Requirements
Section titled “Requirements”- Flutter: 3.27.0 or higher
- Dart: 3.0.0 or higher
- No external dependencies: We keep the package lightweight and robust.