Skip to content

Instantly share code, notes, and snippets.

@rubenquadros
Created June 12, 2022 14:48
Show Gist options
  • Save rubenquadros/c5b5c428e0f38a541a7e92d533aaecf9 to your computer and use it in GitHub Desktop.
Save rubenquadros/c5b5c428e0f38a541a7e92d533aaecf9 to your computer and use it in GitHub Desktop.
App home screen
@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