Created
January 8, 2025 02:59
-
-
Save yeansang/b3b69e0e5e51b89c5667c07b80b6d6a7 to your computer and use it in GitHub Desktop.
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; | |
} | |
/// 샘플 데이터 | |
final List<MusicData> data = [ | |
MusicData(title: '뮤직1', subTitle: '가수1'), | |
MusicData(title: '뮤직2', subTitle: '가수2'), | |
MusicData(title: '뮤직3', subTitle: '가수3'), | |
MusicData(title: '뮤직4', subTitle: '가수4'), | |
MusicData(title: '뮤직5', subTitle: '가수5'), | |
MusicData(title: '뮤직6', subTitle: '가수6'), | |
MusicData(title: '뮤직7', subTitle: '가수7'), | |
MusicData(title: '뮤직8', subTitle: '가수8'), | |
MusicData(title: '뮤직9', subTitle: '가수9'), | |
MusicData(title: '뮤직10', subTitle: '가수10'), | |
MusicData(title: '뮤직11', subTitle: '가수11'), | |
]; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: Text("code") | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment