Add more dartdoc to material.dart (#3167)
Also, clean up a few interfaces that looked awkward when writing docs.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user