Created
July 17, 2023 14:43
-
-
Save zurche/5735a5e3a56e4c6953a7bf485ce1bda5 to your computer and use it in GitHub Desktop.
Composable Updated
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
@Composable | |
fun FavouriteButton(isFavourite: Boolean) { | |
if (isFavourite) { | |
Icon(imageVector = Icons.Rounded.Favorite, contentDescription = "Filled Heart Icon") | |
} else { | |
Icon(imageVector = Icons.Rounded.FavoriteBorder, contentDescription = "Empty Heart Icon") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment