생성 때 고른 행성 형태·색 표시 · HOME 주간 정보
This commit is contained in:
@@ -4,6 +4,7 @@ import '../../core/data/planet_visual_state.dart';
|
||||
import '../../core/theme/tokens.dart';
|
||||
import '../../core/ui/app_dialog.dart';
|
||||
import '../../core/ui/app_icons.dart';
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt;
|
||||
import '../notification/notification_screen.dart';
|
||||
import '../eclipse/eclipse_data.dart';
|
||||
import '../eclipse/widgets/eclipse_banner.dart';
|
||||
@@ -29,8 +30,8 @@ class GalaxyHomeScreen extends StatefulWidget {
|
||||
/// 카드 그림 — HOME · 맵과 같이 팬덤 `stage` 로 고른다. Stage0 성운만 성운 그림이고
|
||||
/// 정식 행성은 시안 행성 그림(`image 8` · 파란 행성 벡터)을 칸마다 번갈아 쓴다.
|
||||
/// 예전엔 칸 순서로 골라 둘째 칸이 행성이어도 성운 그림이 됐다.
|
||||
// ponytail: 행성마다 고정된 두 그림 중 하나(id 기준) — 칸 순서가 바뀌어도 같은 그림.
|
||||
// 탄생 때 고른 모양 · 색 에셋은 최신 Figma 행성 에셋 교체(10/8)에서 연결한다.
|
||||
// ponytail: 형태가 없는 행성(옛 데이터)만 고정된 두 그림 중 하나(id 기준). 형태가 있으면
|
||||
// 카드가 [PlanetArt] 로 생성 때 고른 형태 · 색을 그린다.
|
||||
static String cardImageOf(PlanetNode p, [int _ = 0]) => p.stage == 0
|
||||
? 'assets/figma/nebula-card.png'
|
||||
: (p.id.codeUnits.fold<int>(0, (a, c) => a + c).isEven
|
||||
@@ -349,9 +350,10 @@ class _PlanetCard extends StatelessWidget {
|
||||
Positioned.fill(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(11, 10, 10, 11),
|
||||
child: Image.asset(
|
||||
image,
|
||||
fit: BoxFit.contain,
|
||||
child: PlanetArt(
|
||||
fallback: image,
|
||||
planetType: planet.stage == 0 ? null : planet.planetType,
|
||||
colorKey: planet.colorKey,
|
||||
semanticLabel: planet.name,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user