leboncoin/spark-android

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

Geschlossen

#2.118 geöffnet am 27.07.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (31 Forks)auto 404
contribution welcomeddocumentationgood first issuepriority:MEDIUM

Repository-Metriken

Stars
 (85 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 9h) (73 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide