Add more dartdocs to material.dart (#3279)

This commit is contained in:
Adam Barth
2016-04-12 14:18:58 -07:00
parent 8d02f304cf
commit ec4a6a96f2
13 changed files with 216 additions and 46 deletions

View File

@@ -193,7 +193,7 @@ class ListDemoState extends State<ListDemo> {
child: new Scrollbar(
child: new MaterialList(
type: _itemType,
scrollablePadding: new EdgeInsets.all(_dense ? 4.0 : 8.0),
padding: new EdgeInsets.all(_dense ? 4.0 : 8.0),
children: listItems
)
)

View File

@@ -11,7 +11,7 @@ class TwoLevelListDemo extends StatelessWidget {
appBar: new AppBar(title: new Text('Expand/collapse list control')),
body: new TwoLevelList(
type: MaterialListType.oneLine,
items: <Widget>[
children: <Widget>[
new TwoLevelListItem(title: new Text('Top')),
new TwoLevelSublist(
title: new Text('Sublist'),

View File

@@ -91,10 +91,10 @@ class GalleryHomeState extends State<GalleryHome> {
scrollableKey: _listKey,
appBarBehavior: AppBarBehavior.under,
body: new TwoLevelList(
scrollablePadding: new EdgeInsets.only(top: _kFlexibleSpaceMaxHeight + statusBarHight),
padding: new EdgeInsets.only(top: _kFlexibleSpaceMaxHeight + statusBarHight),
type: MaterialListType.oneLine,
scrollableKey: _listKey,
items: <Widget>[
children: <Widget>[
new TwoLevelSublist(
leading: new Icon(icon: Icons.star),
title: new Text("Demos"),