flutter_pull_up_down_refresh

Highly video, feature-packed flutter_pull_up_down_refresh widget for Flutter.
![]() |
---|
flutter_pull_up_down_refresh |
Features
- Pull Down to refresh data
- Pull Up to reload new data.
- Allow show refresh indicator
- Change loading color
- Change background loading color
- Change refresh indicator Color
- Show bottom loading.
- Scale bottom loading size.
- change color loading option.
Usage
Make sure to check out examples
Installation
Add the following line to pubspec.yaml
:
dependencies:
flutter_pull_up_down_refresh: ^1.0.4
Basic setup
The complete example is available here.
FlutterPullUpDownRefresh(
scrollController: ScrollController(),
showRefreshIndicator: true,
refreshIndicatorColor: Colors.red,
isLoading: isLoading,
loadingColor: Colors.red,
loadingBgColor: Colors.grey.withAlpha(100),
isBootomLoading: isBottom,
bottomLoadingColor: Colors.green,
scaleBottomLoading: 0.6,
onRefresh: () async {
//Start refresh
await pullRefresh();
//End refresh
},
onAtBottom: (status) {
if (status) {
if (kDebugMode) {
print("Scroll at bottom");
if (!isBottom) {
isBottom = true;
listItem();
}
}
}
},
onAtTop: (status) {
if (kDebugMode) {
print("Scroll at Top");
}
},
child: ListView.builder(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: lists.length,
itemBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.only(
left: 10,
right: 10,
bottom: 5,
top: 5,
),
child: Text("item")
)
}
)
)
*** Note *** if use child as Listview please don't forget add this option to disabled listview scroll.
ListView.builder(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
)
Events
use onRefresh
to refesh data
onRefresh: () async {
//Start refresh
await pullRefresh();
//End refresh
},
use onAtBottom
to reload new data
onAtBottom: (status) {
//do something
},
use onAtTop
to optional event just let you know , scroll stay on top.
onAtTop: (status) {
//do something
},
Hello everyone π
If you want to support me, feel free to do so.
Thanks
============================================
αα½ααααΈ α’αααααΆααα’ααααααΆπ
ααΎβα’αααβα ααβααΆααααβαααα»α ααΌαβααααΎβαααβααααΈ ,
ααΌαα’ααα»α

Libraries
- flutter_pull_up_down_refresh
- Support for doing something awesome.