Reputation: 2356
I want to create the following textfield. But there are no samples on the internet for the same, neither in material documentation
Upvotes: 5
Views: 4191
Reputation: 1501
@Composable
fun Textarea() {
val text = rememberSaveable { mutableStateOf("") }
TextField(
value = text.value,
onValueChange = { text.value = it }, modifier = Modifier
.fillMaxWidth()
.height(100.dp)
.padding(10.dp)
.border(width = 1.dp, color = Color.Black, shape = RoundedCornerShape(8.dp))
)
}
You can change the size and customize it as you want as per your requirement.
Upvotes: 9