how can i make the textfield, grow height with its text content? I tried with code similar to below, but its height is fixed, and doesn't grow.
Scaffold(
topBar = {
},
content = {
Box(modifier = Modifier.padding(it)) {
Column(){
LazyColumn(modifier = Modifier.fillMaxHeight(0.9)){
// some composable here for UI
}
Row(){
// icon
BasicTextField(
maxLines = 4,
)
// icon
}
}
}
}
)
though it seems that i have fixed the height by giving 0.9 to column, but i am not getting how not to give fixed height and still grow the textfield height dynamically with content?
Check your constraint and weight.
You can use something like:
For example: