Add more dartdoc to material.dart (#3167)

Also, clean up a few interfaces that looked awkward when writing docs.
This commit is contained in:
Adam Barth
2016-04-07 10:03:59 -07:00
parent 40598449ad
commit 907215df27
20 changed files with 279 additions and 72 deletions

View File

@@ -122,16 +122,14 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> {
]
)
],
flexibleSpace: (BuildContext context) {
return new FlexibleSpaceBar(
title : new Text('Ali Connors'),
image: new AssetImage(
name: 'packages/flutter_gallery_assets/ali_connors.png',
fit: ImageFit.cover,
height: _appBarHeight
)
);
}
flexibleSpace: new FlexibleSpaceBar(
title : new Text('Ali Connors'),
image: new AssetImage(
name: 'packages/flutter_gallery_assets/ali_connors.png',
fit: ImageFit.cover,
height: _appBarHeight
)
)
),
body: new Block(
scrollableKey: _scrollableKey,

View File

@@ -83,7 +83,7 @@ class GalleryHomeState extends State<GalleryHome> {
),
appBar: new AppBar(
expandedHeight: _kFlexibleSpaceMaxHeight,
flexibleSpace: (BuildContext context) => new FlexibleSpaceBar(
flexibleSpace: new FlexibleSpaceBar(
image: new GalleryHeader(),
title: new Text("Flutter gallery")
)