fluttercommunity / flutter-draggable-scrollbar

Draggable Scrollbar - A scrollbar that can be dragged for quickly navigation through a vertical list. Additional option is showing label next to scrollthumb with information about current item. Maintainer: @marica27
https://pub.dev/packages/draggable_scrollbar
MIT License
442 stars 77 forks source link

fix #4 - use draggable scrollbar with sliver list #12

Open Miolin opened 5 years ago

Miolin commented 5 years ago

change BoxScrollView to Widget

jeprojects commented 5 years ago

Can this be pushed to a new pub release?

DenchikBY commented 4 years ago

Have you tested this? Doesn't work for me inside CustomScrollView with sliver children. I'm trying to use it as a parent of SliverList.

A RenderViewport expected a child of type RenderSliver but received a child of type _RenderLayoutBuilder.

It works for me. Just regard a CustomScrollView with sliver children as a ListView in the example.

not working for me as well. i have customSCrollView and sliverList with sliverAppBar. could you please share your widget tree

Just looks like tihs↓ (myStickyBar is a sliverAppBar Snipaste_2020-02-25_11-44-33 PS:You may need to change BoxScrollView to Widget following the commit above firstly.

But in your case wraps whole CustomScrollView, app bar too and scrollbar will be above it. Is it possible to wrap only SliverList?

vauvenal5 commented 3 years ago

This PR is open since 2018... Is there any obvious issue with it?

emvaized commented 2 years ago

@Rizwan-Raza I get this error only when I pass ListView with shrinkWrap: true