Open nhtlquan opened 4 years ago
Have the same issue
@nhtlquan @OmGaler
I needed this functionality too and found a way to do it.
If you haven't seen issue #85 , you can use the "minimum height" property (minHeight) to get the effect you want. Don't use the "collapsed" property at all, and instead just use the minHeight and it gives the effect of dragging the header. Pretty cool.
@NightSkyDev that sounds like it would work. In the end I found a solution at least to my issue. If you look on the readme I tried the scroll behaviour (I think, can't remember what it was called) with a scroll controller. Problem was, I forgot to link the scroll controller to the widget so I did that and it solved the issue.
Do you mean changing the icon on slide up panel from a bar to a down arrow as you slide the panel up?
No, but that would be pretty cool.
Adding a Singlechildscrollview to the panel but it does not get scrolled....does anyone have a solution for this.
@nhtlquan @OmGaler
I needed this functionality too and found a way to do it.
If you haven't seen issue #85 , you can use the "minimum height" property (minHeight) to get the effect you want. Don't use the "collapsed" property at all, and instead just use the minHeight and it gives the effect of dragging the header. Pretty cool.
But the body will still be draggable, I only need header to be draggable.
Please help... I tried this and it's not working
SlidingUpPanel(
header: Container(
height: headerHeight,
width: headerWidth,
child: Center(
child: horizontalStrip,
),
),
minHeight: 0,
// isDraggable: false,
backdropEnabled: true,
color: Color.fromRGBO(240, 240, 240, 1),
borderRadius: radius,
controller: controller,
slideDirection: SlideDirection.DOWN,
panel: GestureDetector(
onVerticalDragUpdate: null, // <-- here
child: child,
),
);
@nhtlquan hi there how did you get the header of the panel to center and change shape as I've been trying and can't seem to figure it out
When scrollview scroll middle body I want drag header to scrollview to top and PanelController scroll with header!!
Look like Zeplin: https://drive.google.com/file/d/1KWbDHGzvExcmY7DN0N8GDDn2-4lkbCcz/view?usp=sharing
@akshathjain, Any workaround for this ?
When scrollview scroll middle body I want drag header to scrollview to top and PanelController scroll with header!!
Look like Zeplin: https://drive.google.com/file/d/1KWbDHGzvExcmY7DN0N8GDDn2-4lkbCcz/view?usp=sharing