escodro
04/28/2021, 11:04 AMModalBottomSheetLayout
and screen orientation.
If I open the BottomSheet
in landscape and rotate the screen the app crashes with error The initial value must have an associated anchor
.
An issue tracker was already open for further investigation, but is there any workaround in the meantime?
Basically this is the only issue that is preventing me to release my app on Google Play. 😊
Thanks a lot for all your help! ❤️Alexey Glushkov
05/23/2021, 2:08 PMval anchors = if (sheetHeight < fullHeight / 2) {
mapOf(
fullHeight to ModalBottomSheetValue.Hidden,
fullHeight - sheetHeight to ModalBottomSheetValue.Expanded
)
Then I see the actual exception is thrown when it can’t find height for Hidden state…
So, I’ve fixed it with an additional top padding…