leboncoin/spark-android

[FR]: Add legacy-pattern callout in COMPONENT_CREATION_GUIDE.md

已關閉

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

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

倉庫指標

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

描述

Describe the problem

The guide documents the object-with-variant-methods pattern as the standard. Many existing components (Tags, Buttons) use per-variant top-level functions. Contributors studying existing code see a pattern the guide does not describe.

Describe the solution

Add a note near the architecture section stating that existing components may use a legacy pattern (per-variant top-level functions) and that new components should follow the object pattern.

Additional context

Priority: Medium. Effort: XS.

貢獻者指南