Created
September 19, 2021 17:09
-
-
Save fabioCollini/fc16bb33bedb8b71c130d7775610f911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun Calculator(state: CalculatorState) { | |
Column { | |
TextField(value = state.v1, onValueChange = { state.v1 = it }) | |
TextField(value = state.v2, onValueChange = { state.v2 = it }) | |
Text(text = state.result.collectAsState(initial = "").value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment