Refresh and pagination list to update and paginate list
Features
Pull to refresh and paginate listview.builder
Getting started
put RefreshPaginationList widget and put required parameters
Usage
class Example extends StatelessWidget{
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Refresh Pagination List',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: RefreshPaginationList(
listItem: (index) => Container(
height: 100,
color: Colors.teal,
width: 50,
margin: EdgeInsets.all(10),
),
totalItems: 10,
refreshList: () {},
swipeList: () {},
swipeLoader: false,
refreshLoader: true,
),
),
);
}
}