Rename and refactor ScrollView hierarchy (#7865)

This prepares us for a CustomScrollView that takes slivers.
This commit is contained in:
Ian Hickson
2017-02-03 16:05:43 -08:00
committed by GitHub
parent 7fea0593f5
commit 332a23030b
49 changed files with 363 additions and 167 deletions

View File

@@ -76,12 +76,12 @@ class AdaptiveContainer extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (MediaQuery.of(context).size.width < _kGridViewBreakpoint) {
return new ScrollView(
return new ListView(
itemExtent: _kListItemExtent,
children: names.map((String name) => new AdaptedListItem(name: name)).toList(),
);
} else {
return new ScrollGrid.extent(
return new GridView.extent(
maxCrossAxisExtent: _kMaxTileWidth,
children: names.map((String name) => new AdaptedGridItem(name: name)).toList(),
);