add pagination for pages
This commit is contained in:
@@ -21,20 +21,10 @@ class ReceivingList extends StatefulWidget {
|
||||
class _ReceivingListState extends State<ReceivingList> {
|
||||
bool _isLoading = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var packageModel = Provider.of<PackageModel>(context);
|
||||
var packages = packageModel.activePackages;
|
||||
var activePackages = packageModel.activePackages;
|
||||
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
@@ -73,7 +63,7 @@ class _ReceivingListState extends State<ReceivingList> {
|
||||
backgroundColor: primaryColor,
|
||||
),
|
||||
body: PaginatorListView<Package>(
|
||||
paginatorListener: packages!,
|
||||
paginatorListener: activePackages!,
|
||||
rowBuilder: (p) => ReceivingListRow(package: p),
|
||||
color: primaryColor)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user