Ink
06/13/2021, 7:35 PMinit {
viewModelScope.launch {
try {
actions.receiveAsFlow().collect { action ->
when (action) {
//handle actions here
}
}
}
}
In Home screen
I have list with post. The problem is when I select post and navigate user to PostDetails screen
I can choose another post though list with post is underhood. I think it's related to Home viewModel
and that action flow works in the background. Any solution what should I change?tad
06/13/2021, 8:05 PMNavHost
stacks each composable on the back stack, so you'll have to swallow gestures in your blue background there.tad
06/13/2021, 8:06 PMModalBottomSheetLayout
has a Scrim
composable that shows how to do that with the pointerInput
modifier, but there's probably an easier way.Ian Lake
06/14/2021, 12:40 AMNavHost
are disposed (with only their state and ViewModel saved); they aren't present in the hierarchy to receive gestures at alltad
06/14/2021, 6:14 PM