Commit 8b112185 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

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
parent d18b5008
...@@ -33,7 +33,7 @@ class TooltipDemo extends StatelessWidget { ...@@ -33,7 +33,7 @@ class TooltipDemo extends StatelessWidget {
child: new Icon( child: new Icon(
Icons.call, Icons.call,
size: 18.0, size: 18.0,
color: theme.primaryColor color: theme.iconTheme.color
) )
), ),
new Text(' icon.', style: theme.textTheme.subhead) new Text(' icon.', style: theme.textTheme.subhead)
...@@ -43,7 +43,7 @@ class TooltipDemo extends StatelessWidget { ...@@ -43,7 +43,7 @@ class TooltipDemo extends StatelessWidget {
child: new IconButton( child: new IconButton(
size: 48.0, size: 48.0,
icon: new Icon(Icons.call), icon: new Icon(Icons.call),
color: theme.primaryColor, color: theme.iconTheme.color,
tooltip: 'Place a phone call', tooltip: 'Place a phone call',
onPressed: () { onPressed: () {
Scaffold.of(context).showSnackBar(new SnackBar( Scaffold.of(context).showSnackBar(new SnackBar(
......
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