Skip to content

Instantly share code, notes, and snippets.

@aritra-tech
Last active May 9, 2024 15:03
Show Gist options
  • Save aritra-tech/2d238a1709d16b83b4d5f00ade01a193 to your computer and use it in GitHub Desktop.
Save aritra-tech/2d238a1709d16b83b4d5f00ade01a193 to your computer and use it in GitHub Desktop.
@Composable
fun ChipExample2() {
Chip(
onClick = { /*TODO*/ },
label = {
Text(text = "Bengaluru")
},
secondaryLabel = {
Text(text = "32 °C")
},
colors = ChipDefaults.imageBackgroundChipColors(
backgroundImagePainter = painterResource(id = R.drawable.sunny)
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment