Created
January 27, 2022 15:08
-
-
Save MyricSeptember/74ce790de895c008afbd72198b88d32c to your computer and use it in GitHub Desktop.
Shows how the implementation of the toolbar show look like
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
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