79449897

Date: 2025-02-19 00:12:17
Score: 0.5
Natty:
Report link

Here is one way to easily show a star (yellow in this example) with a star-shaped outline (black in this example):

Box(contentAlignment = Alignment.Center) {
    Icon(
        imageVector = Icons.Default.StarOutline,
        contentDescription = null,
        tint = Color.Black,
        modifier = Modifier.size(24.dp)
     )
     if (isStarred) {
       Icon(
           imageVector = Icons.Default.Star,
            contentDescription = null,
             tint = Color.Yellow,
             modifier = Modifier.size(18.dp)
      )
}

Sample of stars

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike