leboncoin/spark-android

[FR]: Fix broken CheckBox.md code example

已關閉

#2,102 建立於 2026年7月27日

 (0 則留言) (0 個反應) (0 位負責人)Kotlin (31 個分叉)auto 404
componentdocumentationgood first issuepriority:HIGH

倉庫指標

星標
 (85 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南