From 8b1121851e2195e6189fabd4f6513b8d5cf93db4 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Thu, 19 Jan 2017 11:20:55 -0800 Subject: [PATCH] Fix icon color in dark theme of gallery (#7544) Previously, the icon in the tooltip demo was black on black background in the dark theme. Now it is white on black background in the dark theme and black on white background in the light theme. fixes #7018 --- examples/flutter_gallery/lib/demo/tooltip_demo.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/tooltip_demo.dart b/examples/flutter_gallery/lib/demo/tooltip_demo.dart index 77a87fca52..7522c6ff84 100644 --- a/examples/flutter_gallery/lib/demo/tooltip_demo.dart +++ b/examples/flutter_gallery/lib/demo/tooltip_demo.dart @@ -33,7 +33,7 @@ class TooltipDemo extends StatelessWidget { child: new Icon( Icons.call, size: 18.0, - color: theme.primaryColor + color: theme.iconTheme.color ) ), new Text(' icon.', style: theme.textTheme.subhead) @@ -43,7 +43,7 @@ class TooltipDemo extends StatelessWidget { child: new IconButton( size: 48.0, icon: new Icon(Icons.call), - color: theme.primaryColor, + color: theme.iconTheme.color, tooltip: 'Place a phone call', onPressed: () { Scaffold.of(context).showSnackBar(new SnackBar(