fix: frames

This commit is contained in:
2026-07-08 13:48:29 +03:30
parent df2ae2a215
commit 6b9b9a0f3a
8 changed files with 461 additions and 216 deletions
@@ -4,6 +4,8 @@ class AvatarFrame {
final String title;
final int priceCoins;
final bool vip;
final String c1; // رنگِ گرادیان (hex بدونِ #)؛ خالی ⇒ قابِ رتبه
final String c2;
final bool owned;
const AvatarFrame({
@@ -11,6 +13,8 @@ class AvatarFrame {
required this.title,
required this.priceCoins,
required this.vip,
required this.c1,
required this.c2,
required this.owned,
});
@@ -19,6 +23,8 @@ class AvatarFrame {
title: (j['title'] ?? '') as String,
priceCoins: (j['price_coins'] ?? 0) as int,
vip: (j['vip'] ?? false) as bool,
c1: (j['c1'] ?? '') as String,
c2: (j['c2'] ?? '') as String,
owned: (j['owned'] ?? false) as bool,
);
}