Clear input after sending

This commit is contained in:
Sylwester Zieliński
2022-05-09 13:35:14 +02:00
parent a2f8b70bba
commit ca1a519726

View File

@@ -32,7 +32,10 @@ internal fun InputSection(onEvent: (UARTViewEvent) -> Unit) {
Spacer(modifier = Modifier.size(16.dp))
Button(
onClick = { onEvent(OnRunInput(text.value, checkedItem.value)) },
onClick = {
onEvent(OnRunInput(text.value, checkedItem.value))
text.value = String.EMPTY
},
modifier = Modifier.padding(top = 6.dp)
) {
Text(text = stringResource(id = R.string.uart_send))