Unverified Commit a8f565eb authored by amirh's avatar amirh Committed by GitHub

Icons demo cleanup - set color in the icon theme, remove unused iconOpacity (#13255)

parent 1bef312f
......@@ -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(
......
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