Fixed the RaisedButton shadow issue

The onHighlightChanged callback was being given "true" every time
instead of the actual value.
This commit is contained in:
Ian Hickson
2016-01-11 22:03:26 -08:00
parent 875da1f53f
commit ac616df0bd

View File

@@ -61,8 +61,9 @@ class _InkResponseState<T extends InkResponse> extends State<T> {
} else {
_lastHighlight.deactivate();
}
assert(value == (_lastHighlight != null && _lastHighlight.active));
if (config.onHighlightChanged != null)
config.onHighlightChanged(value != null);
config.onHighlightChanged(value);
}