Colton Idle
07/25/2022, 2:57 PMfun MyScreen(
) {
val context = LocalContext.current
Box(Modifier.fillMaxSize().background(Color.Green), contentAlignment = Center) {
Button(onClick = { Toast.makeText(context, "screen in background clicked", Toast.LENGTH_SHORT).show() }) {
Text(text = "Bottom")
}
}
Box(Modifier.fillMaxSize().background(Color.Red)) {}
}
Joseph Hawkes-Cates
07/25/2022, 3:06 PMmyanmarking
07/25/2022, 3:06 PMColton Idle
07/25/2022, 3:12 PMBox(
Modifier
.fillMaxSize()
.background(Color.Red)
.clickable(interactionSource = MutableInteractionSource(), indication = null, onClick = {})) {}
myanmarking
07/25/2022, 3:13 PMColton Idle
07/25/2022, 3:15 PMmyanmarking
07/25/2022, 3:20 PM.pointerInput(Unit) {}
lhwdev
07/27/2022, 7:58 AMSurface
?Colton Idle
07/28/2022, 2:37 PM