Anastasia Rozovskaya
11/17/2021, 1:56 PMComposeView
. Could I use this composeView for two types of Composable dialogs which is shown on the screen dynamically depending on backend results? Or should I use one composeView per one type of dialogs?Mehdi Haghgoo
11/17/2021, 4:23 PMMehdi Haghgoo
11/17/2021, 4:24 PMAnastasia Rozovskaya
11/17/2021, 5:25 PMisDialogVisible was not initialized
for some season, when using only one composeView for them.
I tried to initialise the above variable by using:
1. private lateinit var isDialogVisible: MutableState<Boolean>
and then
isDialogVisible.value = true
2. private var isDialogVisible by mutableStateof(value = false)
and then just isDialogVisible = true
the above cases work fine when I have one ComposeView and one type of dialog per screen.
Medhi, thanks for sharing your ideas. I’ll try to review this behaviour again tomorrow