Commit ac616df0 authored by Ian Hickson's avatar Ian Hickson

Fixed the RaisedButton shadow issue

The onHighlightChanged callback was being given "true" every time
instead of the actual value.
parent 875da1f5
......@@ -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);
}
......
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