Add PageView (#7809)

This widget is a start towards replacing PageableList. There are still a number
of features that we'll need to add before this widget can replace PageableList.
This commit is contained in:
Adam Barth
2017-02-02 16:16:20 -08:00
committed by GitHub
parent 3831e0b06d
commit 3231465769
12 changed files with 239 additions and 34 deletions

View File

@@ -124,9 +124,9 @@ class PageableListAppState extends State<PageableListApp> {
}
Widget _buildBody(BuildContext context) {
return new PageableList(
children: cardModels.map(buildCard),
itemsWrap: itemsWrap,
return new PageView(
children: cardModels.map(buildCard).toList(),
// TODO(abarth): itemsWrap: itemsWrap,
scrollDirection: scrollDirection
);
}
@@ -150,7 +150,7 @@ void main() {
theme: new ThemeData(
brightness: Brightness.light,
primarySwatch: Colors.blue,
accentColor: Colors.redAccent[200]
accentColor: Colors.redAccent[200],
),
home: new PageableListApp()
));