morfly
02/05/2021, 8:44 AMdp
value and ends with fillMaxWidth
?
For example:
val width = DpPropKey("width")
val transitionDefinition = transitionDefinition<ButtonState> {
state(ButtonState.COLLAPSED) {
this[width] = 60.dp
}
state(ButtonState.EXPANDED) {
this[width] = ??? // how can I represent a `fillMaxWidth` value here?
}
}
Thanks!Ali Albaali
02/05/2021, 11:35 AMmorfly
02/06/2021, 2:38 AMWithConstraints
composable may help in this case, as it allows to get the computed width and height values