Lilly
04/23/2021, 10:21 PMOutlinedTextField
. Is it intended?
@Preview
@Composable
fun OutLinedTextPreview() {
Box {
var text by rememberSaveable { mutableStateOf("") }
OutlinedTextField(
value = text,
onValueChange = { text = it },
label = { Text("Label") }
)
}
}
dewildte
04/23/2021, 11:32 PMLilly
04/24/2021, 12:16 AMdewildte
04/24/2021, 1:15 AMdewildte
04/24/2021, 1:16 AMdewildte
04/24/2021, 1:18 AMdewildte
04/24/2021, 1:19 AM/*
This padding is used to allow label not overlap with the content above it. This 8.dp will work
for default cases when developers do not override the label's font size. If they do, they will
need to add additional padding themselves
*/
private val OutlinedTextFieldTopPadding = 8.dp
dewildte
04/24/2021, 1:20 AMdewildte
04/24/2021, 1:22 AMdewildte
04/24/2021, 1:23 AMLilly
04/24/2021, 2:26 AM