leboncoin/spark-android

[FR]: Fix broken CheckBox.md code example

Geschlossen

#2.102 geöffnet am 27.07.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (31 Forks)auto 404
componentdocumentationgood first issuepriority:HIGH

Repository-Metriken

Stars
 (85 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide