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

Maintain the standard bottom sheet after configuration changes such as device rotation. #29

Closed yijia-wang-sap closed 4 weeks ago

yijia-wang-sap commented 2 months ago

Is your feature request related to a problem?

The standard bottom sheet will be gone after device configuration changes, such as rotating from portrait to landscape mode.

Describe the solution you'd like:

The non-modal standard bottom sheet should remain its state before the configuration changes.

skydoves commented 4 weeks ago

Hey @yijia-wang-sap, you can handle the configuration changes using rememberSaveable or something. As FlexibleBottomSheet targets KMP, I don't have any plans yet for supporting the Android configuration changes yet.