Zoltan Demant
03/17/2025, 10:56 AMFocusedIndicatorThickness
is 2.dp
and UnfocusedIndicatorThickness
is 1.dp
As a result my layout grows/shrinks in size when I move focus around. I can call BasicTextField myself to override this behavior, but Id rather not. Im sure theres a modifier I can throw on the layout so that it keeps its size, or something?Stylianos Gakis
03/17/2025, 11:11 AMZoltan Demant
03/17/2025, 11:15 AMLouis Pullen-Freilich [G]
03/17/2025, 11:22 AMStylianos Gakis
03/17/2025, 11:23 AMZoltan Demant
03/17/2025, 11:48 AMZoltan Demant
03/17/2025, 11:56 AMZoltan Demant
03/17/2025, 11:56 AMdorche
03/20/2025, 8:36 PMColton Idle
03/24/2025, 4:24 PMZoltan Demant
03/25/2025, 12:21 PMdorche
03/25/2025, 12:33 PM@Composable
fun minHeight(): Dp = with(LocalDensity.current) {
max(
48.dp, // min touch target
(verticalPadding * 2) + labelStyle.lineHeight.toDp() + 4.sp.toDp() + textStyle.lineHeight.toDp()
)
}
Zoltan Demant
03/25/2025, 12:35 PMdorche
03/25/2025, 12:35 PMdorche
03/25/2025, 12:37 PMZoltan Demant
03/25/2025, 12:41 PMdorche
03/25/2025, 12:44 PMZoltan Demant
03/25/2025, 1:37 PM