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
e683cb21
Commit
e683cb21
authored
Aug 18, 2016
by
Hans Muller
Committed by
GitHub
Aug 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gallery home page header color should track the material theme (#5486)
parent
7b2f6604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+7
-9
No files found.
examples/flutter_gallery/lib/gallery/home.dart
View file @
e683cb21
...
...
@@ -99,20 +99,17 @@ class GalleryHome extends StatefulWidget {
class
GalleryHomeState
extends
State
<
GalleryHome
>
{
static
final
Key
_homeKey
=
new
ValueKey
<
String
>(
"Gallery Home"
);
static
final
GlobalKey
<
ScrollableState
>
_scrollableKey
=
new
GlobalKey
<
ScrollableState
>();
final
List
<
Widget
>
_listItems
=
<
Widget
>[];
@override
void
initState
()
{
super
.
initState
();
List
<
Widget
>
_galleryListItems
()
{
final
List
<
Widget
>
listItems
=
<
Widget
>[];
final
ThemeData
themeData
=
Theme
.
of
(
context
);
final
TextStyle
headerStyle
=
themeData
.
textTheme
.
body2
.
copyWith
(
color:
themeData
.
accentColor
);
String
category
;
for
(
GalleryItem
galleryItem
in
kAllGalleryItems
)
{
if
(
category
!=
galleryItem
.
category
)
{
if
(
category
!=
null
)
_
listItems
.
add
(
new
Divider
());
_
listItems
.
add
(
listItems
.
add
(
new
Divider
());
listItems
.
add
(
new
Container
(
height:
48.0
,
padding:
const
EdgeInsets
.
only
(
left:
16.0
),
...
...
@@ -122,8 +119,9 @@ class GalleryHomeState extends State<GalleryHome> {
);
category
=
galleryItem
.
category
;
}
_
listItems
.
add
(
galleryItem
);
listItems
.
add
(
galleryItem
);
}
return
listItems
;
}
@override
...
...
@@ -160,7 +158,7 @@ class GalleryHomeState extends State<GalleryHome> {
body:
new
Block
(
scrollableKey:
_scrollableKey
,
padding:
new
EdgeInsets
.
only
(
top:
_kFlexibleSpaceMaxHeight
+
statusBarHeight
),
children:
_
listItems
children:
_
galleryListItems
()
)
);
}
...
...
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