This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// TODO: url이 주어졌을때 해당 url에서 음악 파일의 ID(c5dc87...5ca16)만을 추출해 내는 함수 작성 | |
final url = 'https://dev.stream.aplayz.co.kr/broadcast/c5dc877035612cc4107340d191b5ca16.m3u8'; | |
String getMusicIdFromUrl({required String url}){ | |
return ''; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// TODO: 샘플데이터를 받아 격자 형태로 보여주는 화면 작성(어떤 widget class를 써도 상관 없음). 이때 각 아이템은 터치할때 InkWell 효과가 적용되어 있어야 한다 | |
import 'package:flutter/material.dart'; | |
class MusicData { | |
const MusicData({required this.title, required this.subTitle}); | |
final String title; | |
final String subTitle; | |
} | |
/// 샘플 데이터 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// TODO: Date 객체를 받아서 해당 시간이 현재 시간으로부터 60분 전까지는 "mm분전"으로 24시간 전까지는 "HH시간전"으로 7일 전까지는 "dd일전"으로 52주 전까지는 "WW주전"으로 1년 전부터는 "yyyy년전"으로 표시하는 함수 작성 | |
String getFormattedTime(DateTime date) { | |
return ""; | |
} |