커스텀창 - "체험하기"를 누르면 화면 전체 테마가 즉시 바뀌도록 수정

기존엔 미리보기가 큰 타일 하나만 바꾸고, 배경/카드 등 화면 전체는 실제
장착된 테마를 따로 불러와 보여줬다. 이제는 _resolvePreviewTemplate()
하나로 "지금 보여줄 테마"를 통일해서, 체험하기로 고른 템플릿이 배경색/
보유 캐시 바/카드 전부에 즉시 반영된다. "기본 모습"을 고르면 화면 전체가
원래 모습으로 돌아간다.

ShopTemplate에 code 필드를 추가해서 profileThemes 맵을 바로 찾아 쓸 수
있게 했다.
This commit is contained in:
2026-10-01 06:29:40 +00:00
parent 4e74667993
commit 726d2dc632
2 changed files with 18 additions and 20 deletions
@@ -9,6 +9,7 @@ import '../theme/profile_themes.dart';
class ShopTemplate {
final int id;
final String code;
final String category;
final String name;
final int price;
@@ -19,6 +20,7 @@ class ShopTemplate {
ShopTemplate({
required this.id,
required this.code,
required this.category,
required this.name,
required this.price,
@@ -31,6 +33,7 @@ class ShopTemplate {
factory ShopTemplate.fromJson(Map<String, dynamic> json) {
return ShopTemplate(
id: json['id'] as int,
code: json['code'] as String,
category: json['category'] as String,
name: json['name'] as String,
price: json['price'] as int,