julioromano
03/24/2022, 2:20 PMdisabled
?
Maybe something with CompositionLocals?
(what I’m trying to achieve is to have an entire screen to be disabled under certain conditions)Casey Brooks
03/24/2022, 5:54 PMif
statement. You shouldn’t need to make it more complicated than that.julioromano
03/24/2022, 6:40 PMCasey Brooks
03/24/2022, 6:47 PMChris Johnson
03/25/2022, 12:44 AMChris Sinco [G]
03/25/2022, 1:39 AMjulioromano
03/25/2022, 12:09 PMChris Sinco [G]
03/28/2022, 4:19 AMZach Klippenstein (he/him) [MOD]
04/11/2022, 6:14 PMjulioromano
08/11/2022, 7:29 AMdrawWithContent
modifier as you suggested, I got a semi transparent scrim to draw above my content, but it does not block any input. Is this expected?
Code:
Box(
modifier = Modifier.then(
if (isLocked) {
Modifier
.drawWithContent {
drawContent()
drawRect(color = Color.Gray, alpha = 0.1f)
}
} else Modifier
)
) {...}
Chris Sinco [G]
08/11/2022, 4:41 PM