leboncoin/spark-android

[FR]: Fix broken CheckBox.md code example

Fermée

#2 102 ouverte le 27 juil. 2026

 (0 commentaire) (0 réaction) (0 personne assignée)Kotlin (31 forks)auto 404
componentdocumentationgood first issuepriority:HIGH

Métriques du dépôt

Stars
 (85 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Describe the problem

The standalone Checkbox example in CheckBox.md references isChecked inside onClick, but the declared state variable is checkedState: ToggleableState. The variable isChecked does not exist. The example does not compile.

Describe the solution

Replace the onClick body with correct state mutation:

onClick = { checkedState = if (checkedState == ToggleableState.On) ToggleableState.Off else ToggleableState.On }

Additional context

Priority: High. Effort: XS.

Guide contributeur