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