Revised PageableList

This commit is contained in:
Hans Muller
2015-12-08 13:49:20 -08:00
parent 4f22f3ecde
commit c1d42a2fde
9 changed files with 449 additions and 203 deletions

View File

@@ -120,18 +120,11 @@ class PageableListAppState extends State<PageableListApp> {
}
Widget _buildBody(BuildContext context) {
Widget list = new PageableList<CardModel>(
return new PageableList<CardModel>(
items: cardModels,
itemsWrap: itemsWrap,
itemBuilder: buildCard,
scrollDirection: scrollDirection,
itemExtent: (scrollDirection == ScrollDirection.vertical)
? pageSize.height
: pageSize.width
);
return new SizeObserver(
onSizeChanged: updatePageSize,
child: list
scrollDirection: scrollDirection
);
}