leboncoin/spark-android

[FR]: Fix broken CheckBox.md code example

クローズ

#2,102 opened on 2026/07/27

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Kotlin (31 件のフォーク)auto 404
componentdocumentationgood first issuepriority:HIGH

Repository metrics

Stars
 (85 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド