We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a444a0b commit 62863bcCopy full SHA for 62863bc
lib/touchable.dart
@@ -26,11 +26,18 @@ class _TouchableHighlightState extends State<TouchableHighlight> {
26
if (widget.onPressed != null) widget.onPressed();
27
}
28
29
+ _onTapCancel(){
30
+ setState(() {
31
+ bg = Color(0xFFFFFFFF);
32
+ });
33
+ }
34
+
35
@override
36
Widget build(BuildContext context) {
37
return GestureDetector(
38
onTapDown: this._onTapDown,
39
onTapUp: this._onTapUp,
40
+ onTapCancel: this._onTapCancel,
41
child: Container(
42
color: bg,
43
child: widget.child,
0 commit comments