fix(app): 곡 상세 화면 뮤직비디오/스페셜 영상 구분 표시

video_type이 'special'이면 '스페셜 영상', 그 외는 '뮤직비디오'로 표시

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-04-04 13:04:03 +09:00
parent 574662b24d
commit 5f70b6852f

View file

@ -111,12 +111,13 @@ class _TrackDetailViewState extends State<TrackDetailView> {
child: _TrackHeader(track: track), child: _TrackHeader(track: track),
), ),
// // /
if (youtubeVideoId != null) if (youtubeVideoId != null)
SliverToBoxAdapter( SliverToBoxAdapter(
child: _MusicVideoSection( child: _MusicVideoSection(
videoId: youtubeVideoId, videoId: youtubeVideoId,
trackTitle: track.title, trackTitle: track.title,
videoType: track.videoType,
onTap: () => _openYoutube(youtubeVideoId), onTap: () => _openYoutube(youtubeVideoId),
), ),
), ),
@ -282,15 +283,17 @@ class _TrackHeader extends StatelessWidget {
} }
} }
/// /// /
class _MusicVideoSection extends StatelessWidget { class _MusicVideoSection extends StatelessWidget {
final String videoId; final String videoId;
final String trackTitle; final String trackTitle;
final String? videoType;
final VoidCallback onTap; final VoidCallback onTap;
const _MusicVideoSection({ const _MusicVideoSection({
required this.videoId, required this.videoId,
required this.trackTitle, required this.trackTitle,
this.videoType,
required this.onTap, required this.onTap,
}); });
@ -313,9 +316,9 @@ class _MusicVideoSection extends StatelessWidget {
), ),
), ),
const SizedBox(width: 8), const SizedBox(width: 8),
const Text( Text(
'뮤직비디오', videoType == 'special' ? '스페셜 영상' : '뮤직비디오',
style: TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),