Skip to content

Instantly share code, notes, and snippets.

@MyricSeptember
Created January 27, 2022 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MyricSeptember/74ce790de895c008afbd72198b88d32c to your computer and use it in GitHub Desktop.
Save MyricSeptember/74ce790de895c008afbd72198b88d32c to your computer and use it in GitHub Desktop.
Shows how the implementation of the toolbar show look like
TopAppBar(backgroundColor = Color.Transparent, elevation = 0.dp) {
Row(
horizontalArrangement = Arrangement.Start,
modifier = Modifier.padding(start = 8.dp)
) {
Icon(
imageVector = Icons.Default.ArrowBack,
contentDescription = "Arrow Back",
modifier = Modifier.clickable {
navController.popBackStack()
})
Spacer(modifier = Modifier.width(8.dp))
Text(text = "Country Detail", fontWeight = FontWeight.Bold)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment