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
a8f565eb
Unverified
Commit
a8f565eb
authored
Nov 30, 2017
by
amirh
Committed by
GitHub
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Icons demo cleanup - set color in the icon theme, remove unused iconOpacity (#13255)
parent
1bef312f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
icons_demo.dart
examples/flutter_gallery/lib/demo/material/icons_demo.dart
+1
-3
No files found.
examples/flutter_gallery/lib/demo/material/icons_demo.dart
View file @
a8f565eb
...
...
@@ -35,7 +35,6 @@ class IconsDemoState extends State<IconsDemo> {
];
int
iconColorIndex
=
8
;
// teal
double
iconOpacity
=
1.0
;
Color
get
iconColor
=>
iconColors
[
iconColorIndex
];
...
...
@@ -49,7 +48,6 @@ class IconsDemoState extends State<IconsDemo> {
return
new
IconButton
(
icon:
new
Icon
(
icon
),
iconSize:
iconSize
,
color:
iconColor
,
tooltip:
"
${enabled ? 'Enabled' : 'Disabled'}
icon button"
,
onPressed:
enabled
?
handleIconButtonPress
:
null
);
...
...
@@ -74,7 +72,7 @@ class IconsDemoState extends State<IconsDemo> {
title:
const
Text
(
'Icons'
)
),
body:
new
IconTheme
(
data:
new
IconThemeData
(
opacity:
iconOpacity
),
data:
new
IconThemeData
(
color:
iconColor
),
child:
new
Padding
(
padding:
const
EdgeInsets
.
all
(
24.0
),
child:
new
Column
(
...
...
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