leboncoin/spark-android

[FR]: Fix broken CheckBox.md code example

Chiusa

#2102 aperta il 27 lug 2026

 (0 commenti) (0 reazioni) (0 assegnatari)Kotlin (31 fork)auto 404
componentdocumentationgood first issuepriority:HIGH

Metriche repository

Star
 (85 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor