style(ui): 主页列表尺寸按设计稿收紧
- 清听 28->24、媒体库 22->20、我的收藏标题 22->20 - 本地音乐/最近播放按钮文字 14->13 - 收藏项:封面 44->32、标题 16->13、副标题 13->11, padding 2->0,minVerticalPadding 0 - 行高约 90dp -> 71dp,更接近设计稿的密度
This commit is contained in:
@@ -458,19 +458,20 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
itemBuilder: (context, index) {
|
||||
final song = _favorites[index];
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 2),
|
||||
padding: EdgeInsets.zero,
|
||||
child: ListTile(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
visualDensity: VisualDensity.compact,
|
||||
minVerticalPadding: 0,
|
||||
leading: SongArtwork(
|
||||
filePath: song.artworkPath,
|
||||
size: 44,
|
||||
size: 32,
|
||||
fallbackIcon: Icons.music_note,
|
||||
),
|
||||
title: Text(
|
||||
song.displayTitle,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.white,
|
||||
),
|
||||
@@ -479,7 +480,7 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
),
|
||||
subtitle: Text(
|
||||
song.displaySubtitle,
|
||||
style: TextStyle(fontSize: 13, color: Colors.grey[400]),
|
||||
style: TextStyle(fontSize: 11, color: Colors.grey[400]),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
@@ -701,7 +702,7 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
const Text(
|
||||
'清听',
|
||||
style: TextStyle(
|
||||
fontSize: 28,
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
),
|
||||
@@ -738,7 +739,7 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
const Text(
|
||||
'媒体库',
|
||||
style: TextStyle(
|
||||
fontSize: 22,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Color(0xFFB8D4D0),
|
||||
),
|
||||
@@ -866,7 +867,7 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
const Text(
|
||||
'本地音乐',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.white70,
|
||||
),
|
||||
@@ -894,7 +895,7 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
const Text(
|
||||
'最近播放',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.white70,
|
||||
),
|
||||
@@ -932,7 +933,7 @@ class _HomePageState extends BaseState<HomePage> {
|
||||
Text(
|
||||
_homeTab == 0 ? '我的收藏' : '歌单列表',
|
||||
style: const TextStyle(
|
||||
fontSize: 22,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Color(0xFFB8D4D0),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user