mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-19 15:34:26 +01:00
Change TextField to OutlinedTextField for UART
This commit is contained in:
@@ -30,16 +30,17 @@ internal fun InputSection(onEvent: (UARTViewEvent) -> Unit) {
|
|||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||||
Box(modifier = Modifier.weight(1f)) {
|
Box(modifier = Modifier.weight(1f)) {
|
||||||
|
|
||||||
TextField(
|
OutlinedTextField(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(6.dp)
|
.height(60.dp)
|
||||||
.verticalScroll(rememberScrollState()),
|
.verticalScroll(rememberScrollState()),
|
||||||
value = text.value,
|
value = text.value,
|
||||||
label = { Text(hint) },
|
label = { Text(hint) },
|
||||||
onValueChange = { newValue: String ->
|
onValueChange = { newValue: String ->
|
||||||
text.value = newValue
|
text.value = newValue
|
||||||
})
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.size(16.dp))
|
Spacer(modifier = Modifier.size(16.dp))
|
||||||
|
|||||||
Reference in New Issue
Block a user