akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.36k stars 379 forks source link

Body inside slidingup panel remains 360 in width for all screen size #283

Open pavanjoshi914 opened 2 years ago

pavanjoshi914 commented 2 years ago

the sliding panel expands correctly according to the different screen sizes image

the body inside sliding up panel remains constant to 360 in width for all screen sizes tried many solutions but none worked. i think its the case in the library itself

image

widget tree

image

code

Inisde scaffold body -

            body: SlidingUpPanel(
                color: Color.fromRGBO(62, 180, 137, 10),
                maxHeight: _panelHeightOpen,
                minHeight: _panelHeightClosed,
                padding: EdgeInsets.all(0),
                parallaxEnabled: true,
                parallaxOffset: .5,
                borderRadius: BorderRadius.only(
                    topLeft: Radius.circular(18.0),
                    topRight: Radius.circular(18.0)),
                controller: _pc,
                panel:  _panel(),

                // render view mentioned in list according to the index value
                body: Container(
                    child: _items.elementAt(_selectedIndex)))),