From a8f565eb43b349db8c3d748090dea303ddb1f9e1 Mon Sep 17 00:00:00 2001 From: amirh Date: Wed, 29 Nov 2017 16:02:39 -0800 Subject: [PATCH] Icons demo cleanup - set color in the icon theme, remove unused iconOpacity (#13255) --- examples/flutter_gallery/lib/demo/material/icons_demo.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/material/icons_demo.dart b/examples/flutter_gallery/lib/demo/material/icons_demo.dart index 066daff45d..4f0dd36adf 100644 --- a/examples/flutter_gallery/lib/demo/material/icons_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/icons_demo.dart @@ -35,7 +35,6 @@ class IconsDemoState extends State { ]; int iconColorIndex = 8; // teal - double iconOpacity = 1.0; Color get iconColor => iconColors[iconColorIndex]; @@ -49,7 +48,6 @@ class IconsDemoState extends State { 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 { 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(