title: how can we create a circular checkbox in jetpack compose?
body: <p>It is usually possible to assign different shapes to a composable using a modifier, but this is not done in this composable.</p>
  <p>I want the part marked in the image to be a circle</p>
  <p><a href="https://i.stack.imgur.com/IWw6g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IWw6g.png" alt="enter image description here" /></a></p>
  <p>You can see the code I wrote below</p>
  <pre><code>@Composable
  fun StandardCheckbox(
      text: String = &quot;&quot;,
      checked: Boolean,
      onCheckedChange: ((Boolean) -&gt; Unit)?,
  ) {
      Row(
          Modifier.padding(horizontal = SpaceMedium)
      ) {
          Checkbox(
              modifier = Modifier
                  .clip(CircleShape),
              checked = checked,
              onCheckedChange = onCheckedChange,
              enabled = true,
              colors = CheckboxDefaults.colors(
                  checkedColor = MaterialTheme.colors.primary,
                  checkmarkColor = MaterialTheme.colors.onPrimary,
                  uncheckedColor = MaterialTheme.colors.onBackground.copy(alpha = 0.3f)
              )
          )
          Spacer(modifier = Modifier.width(SpaceSmall))
          Text(
              text = text,
              color = MaterialTheme.colors.primary,
              modifier = Modifier.clickable {
                  if (onCheckedChange != null) {
                      onCheckedChange(!checked)
                  }
              }
          )
      }
  }
  </code></pre>