Skip to content

Commit 1c1ea25

Browse files
committed
Update font for label Tranding and title song
Update font for label Tranding and title song in UI List Songs
1 parent 4b9784b commit 1c1ea25

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

fonts/Campton_Light.ttf

68.3 KB
Binary file not shown.

lib/main.dart

+9-6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class HomeScreen extends StatelessWidget {
7474
style: TextStyle(
7575
color: Color(0xFF7D9AFF),
7676
fontSize: 14.0,
77+
fontFamily: "Campton_Light",
78+
fontWeight: FontWeight.w800,
7779
),
7880
),
7981
top: constraints.maxHeight - 160.0,
@@ -121,8 +123,8 @@ class HomeScreen extends StatelessWidget {
121123
child: Text(
122124
song.title,
123125
style: TextStyle(
124-
color: Colors.black,
125-
fontWeight: FontWeight.w400,
126+
fontWeight: FontWeight.w600,
127+
fontFamily: "Campton_Light",
126128
),
127129
overflow: TextOverflow.ellipsis,
128130
),
@@ -156,15 +158,17 @@ class HomeScreen extends StatelessWidget {
156158
"Popular",
157159
style: TextStyle(
158160
color: Colors.black,
159-
fontWeight: FontWeight.w500,
161+
fontWeight: FontWeight.w600,
160162
fontSize: 24.0,
163+
fontFamily: "Campton_Light",
161164
),
162165
),
163166
Text(
164167
"Show all",
165168
style: TextStyle(
166169
color: Color(0xFF7D9AFF),
167-
fontWeight: FontWeight.w500,
170+
fontWeight: FontWeight.w600,
171+
fontFamily: "Campton_Light",
168172
),
169173
),
170174
],
@@ -186,7 +190,7 @@ class HomeScreen extends StatelessWidget {
186190
),
187191
backgroundColor: Color(0xFF7D9AFF),
188192
onPressed: () {
189-
// TODO: do something in here
193+
print("play all tapped");
190194
},
191195
),
192196
),
@@ -243,7 +247,6 @@ class HomeScreen extends StatelessWidget {
243247
listSong.add(Song(title: "Thank u, next", duration: "3:27"));
244248
listSong.add(Song(
245249
title: "Break up with your girlfriend, i'm bored", duration: "3:10"));
246-
listSong.add(Song(title: "Test", duration: "0:00"));
247250
}
248251
}
249252

pubspec.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ flutter:
7979
- family: CoralPen
8080
fonts:
8181
- asset: fonts/CoralPen.ttf
82+
- family: Campton_Light
83+
fonts:
84+
- asset: fonts/Campton_Light.ttf

0 commit comments

Comments
 (0)