Lukasz Kalnik
11/08/2023, 1:32 PMRow
including TextButton
have a height of 48 dp, although the button itself has height of 40 dp? I'm not adding any padding to the `Row`:TextButton
somehow automagically increases the container size to min touch target size (which would be 48 dp)?vide
11/08/2023, 1:38 PMLukasz Kalnik
11/08/2023, 1:39 PMRow
is inside a Column
, so I need to calculate the Spacer
sizes above and below it based on whether the Button is shown or notvide
11/08/2023, 1:42 PMCsaba Szugyiczki
11/08/2023, 1:42 PMvide
11/08/2023, 1:43 PMLukasz Kalnik
11/08/2023, 1:44 PMCard
which has 16.dp padding, So then the padding would be optically different in the top of the Card
.vide
11/08/2023, 1:46 PMLukasz Kalnik
11/08/2023, 1:46 PMvide
11/08/2023, 1:46 PMLukasz Kalnik
11/08/2023, 1:46 PMZach Klippenstein (he/him) [MOD]
11/08/2023, 3:45 PMLukasz Kalnik
11/08/2023, 3:49 PMif (showButton) {
TextButton( /* ... */)
}
Joel Denke
11/08/2023, 3:58 PMLukasz Kalnik
11/08/2023, 3:58 PMRow
size constant, with the `TextButton`'s touch target extending above and below the Row
(because there is enough white space around the Row
)Joel Denke
11/08/2023, 4:00 PMLukasz Kalnik
11/08/2023, 4:00 PMlabelLarge
I think)Joel Denke
11/08/2023, 4:00 PMLukasz Kalnik
11/08/2023, 4:07 PMvide
11/08/2023, 4:08 PMminimumTouchTargetSize
in LocalViewConfiguration
Lukasz Kalnik
11/08/2023, 4:08 PMJoel Denke
11/08/2023, 4:10 PMLukasz Kalnik
11/08/2023, 4:17 PMModifier
like in this example:
https://developer.android.com/jetpack/compose/layouts/customJoel Denke
11/08/2023, 4:21 PM