Created
December 8, 2022 18:00
-
-
Save MrNtlu/612136f82496fdfcebadd77bb6670098 to your computer and use it in GitHub Desktop.
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
Card( | |
modifier = Modifier | |
.fillMaxWidth() | |
.padding(4.dp) | |
.clickable { | |
coroutineScope.launch { | |
scaffoldState.drawerState.close() | |
} | |
navController.navigate(item.route) | |
}, | |
backgroundColor = if (selected) Purple500 else Color.White, | |
elevation = 0.dp, | |
shape = RoundedCornerShape(12.dp) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment