Home > Blockchain >  JetpackCompose OutlinedTextField cant resize the input inside textfield
JetpackCompose OutlinedTextField cant resize the input inside textfield

Time:12-06

My field looks like this. As you can see from the image, there is some kind of space between the border and the actual input field, what is causing this and how can I resize it. I have tried changing size of text but it doesn't change the size of the input. It always keeps some kind of space on top or bot. Resizing the height of the textfield itself it shows the full input but that doesn't work for me because there is still space on top and bot.

enter image description here

CodePudding user response:

Just use defaultMinSize with modifier ... and pass minHeight as much as you want

        OutlinedTextField(
                      value = "Some Value",
                      onValueChange = {

                      },
                      modifier = Modifier.defaultMinSize(minHeight = 280.dp),
                 )
  • Related