Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ac4ad3bc
Commit
ac4ad3bc
authored
May 12, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flexible space bar demo needs to occupy more vertical space, etc (#3890)
parent
32846de9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
5 deletions
+56
-5
flexible_space_demo.dart
examples/flutter_gallery/lib/demo/flexible_space_demo.dart
+56
-5
No files found.
examples/flutter_gallery/lib/demo/flexible_space_demo.dart
View file @
ac4ad3bc
...
...
@@ -124,10 +124,25 @@ class FlexibleSpaceDemoState extends State<FlexibleSpaceDemo> {
],
flexibleSpace:
new
FlexibleSpaceBar
(
title
:
new
Text
(
'Ali Connors'
),
background:
new
AssetImage
(
name:
'packages/flutter_gallery_assets/ali_connors.png'
,
fit:
ImageFit
.
cover
,
height:
_appBarHeight
background:
new
Stack
(
children:
<
Widget
>[
new
AssetImage
(
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> {
'(323) 555-6789'
,
'Work'
]
)
),
new
_ContactItem
(
icon:
Icons
.
message
,
lines:
<
String
>[
'(650) 555-6789'
,
'Home'
]
),
]
),
new
_ContactCategory
(
...
...
@@ -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'
]
)
]
)
]
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment