Created
September 19, 2021 17:14
-
-
Save fabioCollini/d2105f9ddc627b55214d90f79dcd7c82 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: CalculatorViewModel) { | |
Column { | |
TextField(value = state.v1, onValueChange = { state.v1 = it }) | |
TextField(value = state.v2, onValueChange = { state.v2 = it }) | |
Text(text = state.result.collectAsState().value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment