https://kotlinlang.org logo
#compose
Title
# compose
j

jefbit

04/25/2022, 10:32 PM
Does have any good information on how to handle passing data back to a composable from a bottomSheet that lives in Accompanist ModalBottomSheetLayout? ex: I have a composable that interacts with a bottomSheet and would like to send data back to the composable to filter a list. I know you can pass an argument through the navcontroller navigation, but I am wondering if there is a better way (possibly share a viewmodel?) Thank you.
i

Ian Lake

04/25/2022, 10:41 PM
Do you mean a bottom sheet handled by Accompanist Navigation Material's
bottomSheet
destinations? Navigation already supports returning a result: https://developer.android.com/guide/navigation/navigation-programmatic#returning_a_result
🙏 1
4 Views