skip to Main Content

Basically showModalBottomSheet must have some initial height. But then on dragging it, more content should be shown. Is this possible?

2

Answers


  1. Chosen as BEST ANSWER

    DraggableScrollableSheet which is in-built in flutter can be used inside the showModalBottonSheet to achieve this.


  2. Yes it’s possible. you can do it with isScrollControlled in showModalBottomSheet like this:

    showModalBottomSheet(
       **isScrollControlled: true,**
       context: context,
       builder: (context) {
       return Wrap();//Your Widgets
     },
    )
    

    just set isScrollControlled: true and you can drag your showModalBottomSheet. Hope this helps you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search