Lukasz Kalnik
08/05/2022, 1:27 PMModalBottomSheetLayout
where the contents is the main screen with a list of items, and the sheetContent
are item details (with different settings).
As the item details are quite complex, and don't influence the main screen, I would like to have them in a separate ViewModel. How can I pass the itemId
from the MainScreenViewModel
to the ItemDetailsViewModel
. I don't really fancy creating a shared ViewModel just to pass one value (which is anyway only temporary, as the ItemDetailsViewModel
will store itemId
as well to get the item data).Ian Lake
08/05/2022, 5:38 PMSavedStateHandle
)Lukasz Kalnik
08/05/2022, 5:45 PM