1.2 KiB
1.2 KiB
Custom Button Widget & Asset Implementation
Restoration of Prompt 69
Goal
Implement a unified CustomButtonWidget that utilizes game assets (borders/panels) for a consistent UI look, and apply it to both ItemCardWidget and BattleControls.
Tasks
-
Create
CustomButtonWidget(lib/widgets/common/custom_button_widget.dart)- Should support an image background (
assets/images/icons/borders/...). - Should support
onTap. - Should support arbitrary
childcontent. - Should support
sizeor adaptive sizing. - Optional: Support "Icon Button" mode for convenience or just composability.
- Should support an image background (
-
Refactor
BattleControls(lib/widgets/battle/battle_controls.dart)- Replace
CustomIconButtonwithCustomButtonWidget(or wrap content in it). - Use appropriate border assets (e.g.,
border_000.pngor specialized ones).
- Replace
-
Refactor
ItemCardWidget(lib/widgets/common/item_card_widget.dart)- (Cancelled) User decided to keep the current version of ItemCardWidget without CustomButtonWidget integration.
-
Asset Verification
- Ensure
assets/images/icons/borders/andpanel-border-...are used correctly.
- Ensure