rubber icon indicating copy to clipboard operation
rubber copied to clipboard

Disable drag event

Open JCPradelPH opened this issue 5 years ago • 4 comments

Is it possible to disable the drag event? I need to toggle the bottom sheet via click of a button only

JCPradelPH avatar Jun 01 '19 11:06 JCPradelPH

You can wrap the header Widget in an IgnorePointer widget and that will disable the dragging.

bcurley2314 avatar Jun 02 '19 00:06 bcurley2314

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.

JCPradelPH avatar Jun 02 '19 03:06 JCPradelPH

+1

pishguy avatar Jun 18 '19 07:06 pishguy

I think this module should not be used for this purpose. This effect can be created very easily using a SlideTransition & AnimationController.

Vardiak avatar Aug 21 '19 23:08 Vardiak