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:
@@ -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()
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user