Colton Idle
01/19/2022, 1:39 PM@Composable
fun FakeInputFieldButton(modifier: Modifier, onClick: () -> Unit, valueText: String) {
val someFunc = {}
OutlinedTextField("text", {}, modifier.clickable { someFunc() })
}
Zach Klippenstein (he/him) [MOD]
01/19/2022, 1:43 PMclickable
gets a chance to.readonly
to true, or enabled
to false, i always forget which does whatColton Idle
01/19/2022, 2:08 PMZach Klippenstein (he/him) [MOD]
01/19/2022, 2:22 PMste
01/19/2022, 2:27 PMColton Idle
01/19/2022, 2:27 PMwrite your own clickable implementation that listens on the initial-pass instead of the main one,TIL that there are different passes in clickable
Adam Powell
01/19/2022, 3:26 PMI was curious how a parent clickable doesn't get the click event before the text field.Because if you put a button as a child of a clickable card, it would be weird if you tapped the button and the card is what clicked
Colton Idle
01/19/2022, 3:30 PMAdam Powell
01/19/2022, 3:31 PM