torbenkeller / expandable_bottom_sheet

MIT License
33 stars 23 forks source link

isDraggable is missing? #28

Closed nutchanon-c closed 1 year ago

nutchanon-c commented 1 year ago

Is there a way to disable drag to open/close the expandableContent? Also, right now if I touch anywhere when it is open, it toggles and closes the expandableContent. Is there a way to disable that as well?

nutchanon-c commented 1 year ago

I looked inside the library and I saw

child: GestureDetector(
                  onTap: _toggle,
                  onVerticalDragDown: _dragDown,
                  onVerticalDragUpdate: _dragUpdate,
                  onVerticalDragEnd: _dragEnd,
                  child: Column(
                    mainAxisSize: MainAxisSize.min,
                    children: <Widget>[
                      Container(
                          key: _headerKey,
                          child: widget.persistentHeader ?? Container()),
                      Container(
                        key: _contentKey,
                        child: widget.expandableContent,
                      ),
                    ],
                  ),
                ),

Is there a way to disable those 4 functions?

nutchanon-c commented 1 year ago

update: I saw in the readme that there's isDraggable but I can't seem to find it when actually using it

nutchanon-c commented 1 year ago

I have changed from pub.dev to this repo and it is now present and working as desired. Thank you.