File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class Bounceable extends StatefulWidget {
22
22
/// The scale factor of the child widget. The valid range of `scaleFactor` is from `0.0` to `1.0` .
23
23
final double scaleFactor;
24
24
25
+ /// How the internal gesture detector should behave during hit testing.
26
+ final HitTestBehavior ? hitTestBehavior;
27
+
25
28
final Widget child;
26
29
27
30
const Bounceable ({
@@ -36,6 +39,7 @@ class Bounceable extends StatefulWidget {
36
39
this .curve = Curves .decelerate,
37
40
this .reverseCurve = Curves .decelerate,
38
41
this .scaleFactor = 0.8 ,
42
+ this .hitTestBehavior,
39
43
}) : assert (
40
44
scaleFactor >= 0.0 && scaleFactor <= 1.0 ,
41
45
"The valid range of scaleFactor is from 0.0 to 1.0." ,
@@ -102,6 +106,7 @@ class _BounceableState extends State<Bounceable>
102
106
return MouseRegion (
103
107
cursor: SystemMouseCursors .click,
104
108
child: GestureDetector (
109
+ behavior: widget.hitTestBehavior,
105
110
onTapCancel: widget.onTap != null ? _onTapCancel : null ,
106
111
onTapDown: widget.onTap != null ? _onTapDown : null ,
107
112
onTapUp: widget.onTap != null ? _onTapUp : null ,
You can’t perform that action at this time.
0 commit comments