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(