Created
May 10, 2020 16:35
-
-
Save sagar2093/70b731c3a75a669ad28d5e9e6f15917d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Composable | |
fun UniversityCard(university: University) { | |
Box(padding = 8.dp) { | |
Card( | |
shape = RoundedCornerShape(4.dp), | |
elevation = 4.dp, | |
color = Color.White | |
) { | |
Clickable( | |
modifier = Modifier.ripple(), | |
onClick = { | |
// todo click handling | |
}) { | |
Column(modifier = Modifier.padding(16.dp).fillMaxWidth()) { | |
Text( | |
text = university.uniName, | |
style = themeTypography.h6 | |
) | |
Text(text = university.uniAddress) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment