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
6ac0f612
Commit
6ac0f612
authored
Jul 14, 2017
by
Michael Goderbauer
Committed by
GitHub
Jul 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gallery: remove unused code and a11y fix (#11209)
parent
28d09d16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+7
-13
No files found.
examples/flutter_gallery/lib/gallery/home.dart
View file @
6ac0f612
...
...
@@ -10,14 +10,6 @@ import 'item.dart';
const
double
_kFlexibleSpaceMaxHeight
=
256.0
;
List
<
GalleryItem
>
_itemsWithCategory
(
String
category
)
{
return
kAllGalleryItems
.
where
((
GalleryItem
item
)
=>
item
.
category
==
category
).
toList
();
}
final
List
<
GalleryItem
>
_demoItems
=
_itemsWithCategory
(
'Demos'
);
final
List
<
GalleryItem
>
_componentItems
=
_itemsWithCategory
(
'Components'
);
final
List
<
GalleryItem
>
_styleItems
=
_itemsWithCategory
(
'Style'
);
class
_BackgroundLayer
{
_BackgroundLayer
({
int
level
,
double
parallax
})
:
assetName
=
'packages/flutter_gallery_assets/appbar/appbar_background_layer
$level
.png'
,
...
...
@@ -138,11 +130,13 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
if
(
category
!=
null
)
listItems
.
add
(
const
Divider
());
listItems
.
add
(
new
Container
(
height:
48.0
,
padding:
const
EdgeInsets
.
only
(
left:
16.0
),
alignment:
FractionalOffset
.
centerLeft
,
child:
new
Text
(
galleryItem
.
category
,
style:
headerStyle
)
new
MergeSemantics
(
child:
new
Container
(
height:
48.0
,
padding:
const
EdgeInsets
.
only
(
left:
16.0
),
alignment:
FractionalOffset
.
centerLeft
,
child:
new
Text
(
galleryItem
.
category
,
style:
headerStyle
)
),
)
);
category
=
galleryItem
.
category
;
...
...
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