fix(app): 곡 상세 화면 뮤직비디오/스페셜 영상 구분 표시
video_type이 'special'이면 '스페셜 영상', 그 외는 '뮤직비디오'로 표시 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
574662b24d
commit
5f70b6852f
1 changed files with 8 additions and 5 deletions
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue