Adjust the defaults behaviour of scroll views. (#9679)
* Adjust the defaults behaviour of scroll views. Now, primary scroll views scroll by default. Others only scroll if necessary. * apply suggested changes
This commit is contained in:
@@ -42,6 +42,7 @@ class _ListDemoState extends State<ListDemo> {
|
||||
),
|
||||
child: new ListView(
|
||||
shrinkWrap: true,
|
||||
primary: false,
|
||||
children: <Widget>[
|
||||
new ListTile(
|
||||
dense: true,
|
||||
|
||||
@@ -298,6 +298,6 @@ class GalleryDrawer extends StatelessWidget {
|
||||
));
|
||||
}
|
||||
|
||||
return new Drawer(child: new ListView(children: allDrawerItems));
|
||||
return new Drawer(child: new ListView(primary: false, children: allDrawerItems));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user