google / flutter.widgets

https://pub.dev/packages/flutter_widgets
BSD 3-Clause "New" or "Revised" License
1.36k stars 471 forks source link

ScrollablePositionedList: Provide shrinkWrap #52

Open reverie-ss opened 4 years ago

reverie-ss commented 4 years ago

This is required when adding ScrollablePositionedList in a BottomSheet. Currently it expands fully with a lot of white spaces.

psyanite commented 4 years ago

I have this issue which I think can be fixed if I could have shrinkWrap.

RenderBox was not laid out: UnboundedRenderViewport#35a5f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

Maybe I will also be able to nest ScrollablePositionedList inside a ScrollablePositionedList?

brizaldi commented 4 years ago

this should be marked as top priority

hassan-2040 commented 4 years ago

Dire need of the shrinkwrap property in ScrollablePositionedList. I tried using the ScrollablePositionedList inside SliverList and it gave me the error that Vertical ViewPort was given unbounded height. Expanded cant be used either since its CustomScrollView.

graykick commented 4 years ago

I need this too... to work with slivers.

mehrdad-shokri commented 4 years ago

Please...

mehrdad-shokri commented 4 years ago

Besides shrinkWrap, adding controller is really necessary. What I need is accessing scroll direction in the list

fzyzcjy commented 3 years ago

Is there any updates...?

rgb1380 commented 3 years ago

Will be good to get an update on this feature request.

tehsunnliu commented 3 years ago

looks like this feature is holding a lot of people back from making cool apps.

lff5 commented 3 years ago

Its a must-have!

EdwinOlivera commented 3 years ago

You really need this shrinkwrap property

arshrahman commented 3 years ago

any update on this?

DedSecTeam17 commented 3 years ago

any update on this ??

DedSecTeam17 commented 3 years ago

Hey as a fast solution, I download the library and configure the library, and everything works fine Download files from here : https://drive.google.com/file/d/14NSqyfp-wk_Y5ixYbhFqmvGplhzucL4o/view?usp=sharing Make sure you remove the dependency from the YAML file

helenxuyang commented 3 years ago

@DedSecTeam17 Amazing work, I'd really like to use this in a project if that'd be alright with you! I'm getting type 'RenderShrinkWrappingViewport' is not a subtype of type 'RenderViewport' from line 305 of positioned_list.dart. I tried changing it to RenderShrinkWrappingViewport viewport; but then viewport.anchor doesn't exist. Any ideas on what to do?

DeveloperCJX commented 3 years ago

@DedSecTeam17 Jumpto can't work normally.

lvfen commented 3 years ago

I have commit PR for this,maybe help: https://github.com/google/flutter.widgets/pull/251

deucks commented 3 years ago

@DedSecTeam17 Amazing work, I'd really like to use this in a project if that'd be alright with you! I'm getting type 'RenderShrinkWrappingViewport' is not a subtype of type 'RenderViewport' from line 305 of positioned_list.dart. I tried changing it to RenderShrinkWrappingViewport viewport; but then viewport.anchor doesn't exist. Any ideas on what to do?

Did anyone figure this out?

shahmirzali49 commented 3 years ago

any progress ?

dion-li commented 3 years ago

please update!"shrinkWrap" is very important for my project,now i can just give up to use Scrollablepisitioned

awais305 commented 2 years ago

useless without shrinkWrap!

fzyzcjy commented 2 years ago

Seems that 0.2.3 supports shrinkwrap? :tada:

oremlawi commented 2 years ago

Finally shrinkWrap: true is available 🚀

isroiloglu commented 1 year ago

how use scrollController when shrinkWrap is true ?