skydoves / FlexibleBottomSheet

🐬 Advanced Compose Multiplatform bottom sheet for segmented sizing, non-modal type, and allows interaction behind the bottom sheet similar to Google Maps.
Apache License 2.0
687 stars 30 forks source link

Adding support for “expand to wrap content” state #23

Open SteliosPapamichail opened 3 months ago

SteliosPapamichail commented 3 months ago

Is your feature request related to a problem? No, not really.

A clear and concise description of what the problem is.

The current implementation does not support expanding until the sheet wraps its content.

Describe the solution you'd like:

It would be great if there was a parameter or extra sheet state that could be specified so that the bottom sheet can expand until it wraps all of its content.

Describe alternatives you've considered:

Although I have not yet tried it myself, this could potentially be achieved using the onGloballyPosition modifier (?).

hgarciaalberto commented 2 months ago

I have the same situation, I'd really appreciate this feature @skydoves . Thanks for all the work you do and shared to the community.

Kev1000000 commented 3 weeks ago

I would also really appreciate this feature!