Skip to content

Instantly share code, notes, and snippets.

@callebdev
Created September 26, 2021 01:52
Show Gist options
  • Save callebdev/ff1192f1809a4f2ee75d1a9bd20ce079 to your computer and use it in GitHub Desktop.
Save callebdev/ff1192f1809a4f2ee75d1a9bd20ce079 to your computer and use it in GitHub Desktop.
@Composable
fun FirstScreen(navController: NavController) {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = "Go to Second Screen",
color = Color.Black,
modifier = Modifier.clickable(onClick = {
// Instrucao para navegar para a segunda screen
navController.navigate("secondScreen")
})
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment