Kazemihabib1996
04/03/2020, 12:19 PMBox(modifier = modifier.drawShadow(shape = RoundedCornerShape(5.dp), elevation = 1.dp), padding = 16.dp) {
Row(Modifier.fillMaxWidth()) {
TextField(value = model.text, onValueChange = { data -> model.text = data }, modifier = Modifier.weight(1f))
Icon(Icons.Filled.Search, tint = Color.Red)
}
}
Mihai Popa
04/03/2020, 3:02 PMTextField
is currently filling the available width. If it does not have a weight, the available width for it is the entire width/`Box`. I believe this behavior will go away. CC @Siyamed