MingSern / flutter_bounceable

A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.
MIT License
27 stars 7 forks source link

Add hit test behavior parameter #5

Closed mrn closed 1 year ago

mrn commented 1 year ago

Currently it is not possible to change the hit test behavior of the internal GestureDetector in the Bounceable widget.

My change adds a hitTestBehavior parameter to Bounceable which allows changing this.

mrn commented 1 year ago

I find this useful because one of my projects uses many translucent buttons with only text. With Bounceable, they only bounce when the opaque part is pressed (the text) and not the entire button area. So I prefer to use HitTestBehavior.translucent, but Bounceable did not let me change that.

itsMatoosh commented 1 year ago

Based

MingSern commented 1 year ago

@mrn It's live! Appreciated your pr 👍