성운명 오류 문구 줄바꿈 · 옛 행성 그림 통일 · 광고 안내 모달 줄바꿈
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../core/theme/tokens.dart';
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt;
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt, planetFallbackImage;
|
||||
import 'planet_data.dart';
|
||||
import 'widgets/action_sheet.dart';
|
||||
import '../../core/i18n/app_locale.dart';
|
||||
@@ -412,7 +412,7 @@ Widget _avatar(int index, double size, {bool planet = false, FpiRankRow? row}) =
|
||||
? SizedBox.square(
|
||||
dimension: size,
|
||||
child: PlanetArt(
|
||||
fallback: 'assets/figma/planet-detail-hero.png',
|
||||
fallback: planetFallbackImage(row?.id ?? ''),
|
||||
planetType: row?.planetType,
|
||||
colorKey: row?.colorKey,
|
||||
),
|
||||
|
||||
@@ -7,6 +7,7 @@ import '../campaign/widgets/campaign_rank.dart' show RankPodium;
|
||||
|
||||
import '../../core/data/backend.dart' show BackendException;
|
||||
import '../../core/data/planet_visual_state.dart';
|
||||
import '../../core/ui/live_planet.dart' show LivePlanetArt;
|
||||
|
||||
import '../../core/theme/tokens.dart';
|
||||
import '../../core/ui/app_dialog.dart';
|
||||
@@ -158,6 +159,7 @@ class _PlanetDetailScreenState extends State<PlanetDetailScreen> {
|
||||
],
|
||||
flexibleSpace: _CollapsingHero(
|
||||
detail: d,
|
||||
watchPlanet: widget.watchPlanet,
|
||||
min: top + kToolbarHeight + _tabHeight,
|
||||
hero: PlanetDetailHero(
|
||||
fandomId: d.fandomId,
|
||||
@@ -322,9 +324,11 @@ class _CollapsingHero extends StatelessWidget {
|
||||
required this.detail,
|
||||
required this.min,
|
||||
required this.hero,
|
||||
required this.watchPlanet,
|
||||
});
|
||||
|
||||
final PlanetDetail detail;
|
||||
final PlanetWatch watchPlanet;
|
||||
final double min;
|
||||
final Widget hero;
|
||||
|
||||
@@ -356,10 +360,11 @@ class _CollapsingHero extends StatelessWidget {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset(
|
||||
'assets/figma/planet-detail-hero.png',
|
||||
width: 28,
|
||||
height: 28,
|
||||
LivePlanetArt(
|
||||
fandomId: detail.fandomId,
|
||||
watch: watchPlanet,
|
||||
size: 28,
|
||||
nebula: detail.isNebula,
|
||||
),
|
||||
const SizedBox(width: AppSpace.s2),
|
||||
Flexible(
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/theme/tokens.dart';
|
||||
import '../../../core/ui/live_planet.dart';
|
||||
import '../../../core/ui/planet_25d.dart' show planetFallbackImage;
|
||||
import '../../../core/data/planet_visual_state.dart';
|
||||
import '../../home/home_screen.dart' show formatPop;
|
||||
import '../../../core/i18n/app_locale.dart';
|
||||
@@ -155,7 +156,9 @@ class PlanetDetailHero extends StatelessWidget {
|
||||
onOpenHistory: onOpenHistory,
|
||||
fandomId: fandomId,
|
||||
watch: watchPlanet,
|
||||
image: 'assets/figma/planet-detail-hero.png',
|
||||
image: nebula
|
||||
? 'assets/figma/planet-detail-hero.png'
|
||||
: planetFallbackImage(fandomId),
|
||||
size: 200,
|
||||
glow: AppColors.neonViolet,
|
||||
stage: stage,
|
||||
|
||||
Reference in New Issue
Block a user