Zoltan Demant
10/04/2022, 2:39 PMtrailingIcon
of my TextField
with the input text. Is there a "safe" way to do this? All I can think of is offsetting it by some magic number based on the entire fields size.. but that doesnt feel like a good solution in the long run blob sweat smileZach Klippenstein (he/him) [MOD]
10/04/2022, 2:40 PMZoltan Demant
10/04/2022, 2:43 PMModifier.alignByBaseline()
but the trailing lambda for the icon is just @Composable () -> Unit
Zach Klippenstein (he/him) [MOD]
10/04/2022, 2:47 PMHalil Ozercan
10/04/2022, 2:59 PMCenterVertically
alignment.
https://cs.android.com/androidx/platform/tools/dokka-devsite-plugin/+/master:testData/compose/source/androidx/compose/material/TextField.kt;l=733
You would have to go very deep in your copy paste and change this alignment. There is textPosition
in arguments, it might be of help.Zoltan Demant
10/04/2022, 4:21 PMAle Stamato
10/04/2022, 4:34 PMZoltan Demant
10/05/2022, 4:42 AM