Created
June 12, 2022 14:48
-
-
Save rubenquadros/c5b5c428e0f38a541a7e92d533aaecf9 to your computer and use it in GitHub Desktop.
App home screen
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 HomeScreen(handleException: () -> Unit, unhandledException: () -> Unit) { | |
Column(modifier = Modifier.fillMaxSize()) { | |
Button( | |
modifier = Modifier.align(Alignment.CenterHorizontally), | |
onClick = handleException | |
) { Text(text = "Handle exception") } | |
Button( | |
modifier = Modifier.align(Alignment.CenterHorizontally), | |
onClick = unhandledException | |
) { Text(text = "Unhandled exception") } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment