gts13
07/03/2023, 5:05 PMtrailingIcon
in an OutlinedTextField?gts13
07/03/2023, 5:43 PMBasicTextField(
modifier = Modifier
.weight(1f)
.onFocusChanged {
onFocusChanged?.invoke(it)
},
value = value,
onValueChange = onValueChanged,
singleLine = singleLine,
textStyle = MyTheme.typography.body1Regular,
keyboardActions = keyboardActions,
keyboardOptions = keyboardOptions,
) {
OutlinedTextFieldDefaults.DecorationBox(
value = value,
innerTextField = it,
singleLine = singleLine,
enabled = true,
visualTransformation = VisualTransformation.None,
placeholder = {
hint?.let {
Text(
text = it,
style = MyTheme.typography.body1Regular,
color = hintColor ?: MyTheme.colors.gray1
)
}
},
trailingIcon = trailingIcon,
isError = error != null,
interactionSource = interactionSource,
contentPadding = // <----- something to pass here?
)
}
gts13
07/03/2023, 5:46 PMChristopher Mederos
07/04/2023, 12:14 AMstart
and end
value in PaddingValues to a different valuegts13
07/04/2023, 6:47 AMChristopher Mederos
07/05/2023, 2:26 AMOutlinedTextFieldLayout
, which has no parameter to change the minimum size of the Box around the trailingIcon. However, the minimum size is set at 48.dp - which is about the smallest size a person could reasonably click on.