Add more dartdocs to material.dart (#3279)
This commit is contained in:
@@ -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
|
||||
)
|
||||
)
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user