Commit ac4ad3bc authored by Hans Muller's avatar Hans Muller

Flexible space bar demo needs to occupy more vertical space, etc (#3890)

parent 32846de9
...@@ -124,10 +124,25 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> { ...@@ -124,10 +124,25 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> {
], ],
flexibleSpace: new FlexibleSpaceBar( flexibleSpace: new FlexibleSpaceBar(
title : new Text('Ali Connors'), title : new Text('Ali Connors'),
background: new AssetImage( background: new Stack(
name: 'packages/flutter_gallery_assets/ali_connors.png', children: <Widget>[
fit: ImageFit.cover, new AssetImage(
height: _appBarHeight name: 'packages/flutter_gallery_assets/ali_connors.png',
fit: ImageFit.cover,
height: _appBarHeight
),
// This gradient ensures that the toolbar icons are distinct
// against the background image.
new DecoratedBox(
decoration: new BoxDecoration(
gradient: new LinearGradient(
begin: const FractionalOffset(0.5, 0.0),
end: const FractionalOffset(0.5, 0.30),
colors: <Color>[const Color(0x60000000), const Color(0x00000000)]
)
)
)
]
) )
) )
), ),
...@@ -150,7 +165,14 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> { ...@@ -150,7 +165,14 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> {
'(323) 555-6789', '(323) 555-6789',
'Work' 'Work'
] ]
) ),
new _ContactItem(
icon: Icons.message,
lines: <String>[
'(650) 555-6789',
'Home'
]
),
] ]
), ),
new _ContactCategory( new _ContactCategory(
...@@ -195,6 +217,35 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> { ...@@ -195,6 +217,35 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> {
] ]
) )
] ]
),
new _ContactCategory(
icon: Icons.today,
children: <Widget>[
new _ContactItem(
lines: <String>[
'Birthday',
'January 9th, 1989'
]
),
new _ContactItem(
lines: <String>[
'Wedding anniversary',
'June 21st, 2014'
]
),
new _ContactItem(
lines: <String>[
'First day in office',
'January 20th, 2015'
]
),
new _ContactItem(
lines: <String>[
'Last day in office',
'August 9th, 2015'
]
)
]
) )
] ]
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment