rubber
rubber copied to clipboard
Disable drag event
Is it possible to disable the drag event? I need to toggle the bottom sheet via click of a button only
You can wrap the header Widget in an IgnorePointer widget and that will disable the dragging.
Thanks for the response. The problem is my button is inside the header, so, if I wrap my header with an IgnorePointer, my button will be removed of the onPressed event.
+1
I think this module should not be used for this purpose. This effect can be created very easily using a SlideTransition & AnimationController.