AmrJyniat
08/23/2022, 9:36 AMCard(
Modifier.clickable { doSomething() }
){
CheckBox(
.....,
onCheckedChange = { } // leave it empty and pass its event to parent
)
Text("Some label")
}Moritz Post
08/23/2022, 9:53 AMAmrJyniat
08/23/2022, 10:09 AMOleksandr Balan
08/23/2022, 1:03 PMonCheckedChange to null does the trick? According to doc this should work 🤔
If null, then this is passive and relies entirely on a higher-level component to control the "checked" state.Josh
08/23/2022, 1:09 PMAmrJyniat
08/23/2022, 1:11 PMMark
05/04/2023, 3:36 PMChip which takes a non-null onClick arg. I have a FlowRow of Chip s and I only want the FlowRow to be clickable.Oleksandr Balan
05/04/2023, 3:51 PMChip to be enabled = false. But be aware, that it will change how chip is displayed. Maybe you will want to adjust chip disabled colors with
colors = ChipDefaults.chipColors(
disabledBackgroundColor = ...,
disabledContentColor = ...,
)Mark
05/04/2023, 3:54 PMFlowRowOleksandr Balan
05/04/2023, 3:55 PM.clickable modifier on the FlowRow?Mark
05/04/2023, 3:56 PMcombinedClickable passing in non-null onClick and onLongClickMark
05/04/2023, 3:58 PMBox over the Chip and handle it that way, but I suspect there’s a proper way to do this