I am trying to implement a scrolling behavior in my Flutter application where a widget can be scrolled to either be only partially visible at the bottom of the screen or fully visible at the top. I’ve attached two images to illustrate the desired outcomes:
You can use AnimatedPositioned widget instead of Positioned , add a boolean isOpen for example , and give AnimatedPositioned two cases in the bottom parameter , isOpen ? 120 : 20 , for Example :
2
Answers
You can use AnimatedPositioned widget instead of Positioned , add a boolean isOpen for example , and give AnimatedPositioned two cases in the bottom parameter , isOpen ? 120 : 20 , for Example :
If have any question don’t hesitate to ask.
You can use
DraggableScrollableSheet