0

When I add OutlinedTextField with trailingIcon, unnecessary space is added in between, I don't want this to be added. I am using the below code.

OutlinedTextField(
        // Eg (CH) +41
        value = "Text value",
        modifier = modifier
            .focusable(false)
            .clickable {
                showDialog.value = true
            },
        enabled = false,
        onValueChange = {},
        shape = RoundedCornerShape(16.dp),
        singleLine = true,
        trailingIcon = {
            Icon(
                imageVector = Icons.Default.ArrowDropDown,
                contentDescription = "DropDown"
            )
        }
    )

Image

I want its text to be wrapped and not add unnecessary space.

Mohammed Uzair
  • 145
  • 1
  • 11

0 Answers0