A ver qué tal los nuevos botones ahora
This commit is contained in:
@@ -6,7 +6,7 @@ description: >
|
||||
license: Apache-2.0
|
||||
metadata:
|
||||
author: gentleman-programming
|
||||
version: "1.3"
|
||||
version: "1.4"
|
||||
---
|
||||
|
||||
## When to Use
|
||||
@@ -41,6 +41,8 @@ metadata:
|
||||
16. **Do not bundle chroma-source images.** Chroma-key sources are temporary production files. Only the final transparent PNG/WebP and opaque backgrounds belong in registered Flutter asset folders; otherwise green-screen images can be shipped accidentally.
|
||||
17. **Use shared decorative art widgets for repeated phases.** Debate, word reveal, voting, host-management, notes, rules, and history screens should reuse generated gameplay art through shared components so layouts stay consistent and text/buttons remain real Flutter widgets.
|
||||
18. **Analyzer cleanliness is mandatory.** When editing Dart, do not introduce unused getters/fields or analyzer-only style issues. Avoid `(_, __)`/`(_, __, ___)` callback parameters because `unnecessary_underscores` is enabled; name unused callback parameters descriptively (`context`, `index`, `error`, `stackTrace`) or use only one `_` where valid.
|
||||
19. **Premium buttons must be scalable by construction.** Do not place a decorative button PNG over a Flutter button that already has its own shape/background. Either use a true scalable technique (9-slice/centerSlice with protected corners/ornaments) or draw the frame with Flutter `CustomPainter`. Text, icons, hit state, disabled state, and dynamic width must remain real widgets and must not distort the artwork.
|
||||
20. **Generated backgrounds should not be polluted by procedural placeholders.** Once a screen has a real generated atmosphere background, remove temporary `CustomPainter` silhouettes, confetti rectangles, generic circles, or debug-looking shape layers unless they are intentional premium effects.
|
||||
|
||||
## Mandatory Image Generation Rule
|
||||
|
||||
@@ -84,7 +86,7 @@ If an asset needs transparency and the generator cannot emit native alpha, gener
|
||||
Stack(
|
||||
children: [
|
||||
const PremiumBackground(), // opaque generated or painted base
|
||||
Positioned.fill(child: Image.asset('assets/ui/premium/vignette.png', fit: BoxFit.cover)),
|
||||
Positioned.fill(child: Image.asset('assets/ui/generated/shared/screen_atmosphere_bg.webp', fit: BoxFit.cover)),
|
||||
Positioned(top: 80, left: 0, right: 0, child: RewardHero()), // generated transparent hero asset + Flutter text/state
|
||||
Positioned.fill(child: IgnorePointer(child: ConfettiWidget(confettiController: controller))),
|
||||
SafeArea(child: RealScreenContent()), // text/buttons/progress remain widgets
|
||||
|
||||
Reference in New Issue
Block a user