Samir Basnet
01/11/2022, 6:04 AMSamir Basnet
01/11/2022, 6:07 AMandylamax
01/11/2022, 6:08 AMSamir Basnet
01/11/2022, 6:16 AMColton Idle
01/11/2022, 7:02 AMSamir Basnet
01/11/2022, 7:16 AMColton Idle
01/11/2022, 2:45 PMnavigation is a mess specially with the bottomsheet. I mean now i have to worry about back handling too.You're probably better off using a bottom sheet as a navigation destination as it'll be added to the backstack. Therefore it'll react to back button. I believe you can only do that using the accompanist library on github? If you don't want to do that, you can just catch the back button and check if the bottom sheet is open. If it's open, then close it... Something like this
BackHandler(enabled = !sheetIsShowing) { onBack() }
do you know how we can disable BottomSheet to be draggedthere should be an arg for it. If that doesn't work, id file a bug
or close on outside touch?I thought this was handled automatically? idk. Could have sworn it closes automatically for me.
ModalBottomSheetLayout and i can't find a way to disable half expansion stateI think I opened up a bug about this, but there is a workaround I think
val myBottomSheetState =
rememberModalBottomSheetState(
ModalBottomSheetValue.Hidden,
confirmStateChange = { it != ModalBottomSheetValue.HalfExpanded })
Anyway. My answers aren't all that great I guess. But you should really ask them one at a time. showing what you tried. etc.Samir Basnet
01/11/2022, 3:01 PMColton Idle
01/11/2022, 3:02 PMSamir Basnet
01/11/2022, 3:05 PM