From dbbf215ba81514f3f403a06aaf4133ff2f006740 Mon Sep 17 00:00:00 2001 From: lxh2875931338 Date: Sun, 1 Nov 2026 15:06:57 +0800 Subject: [PATCH] =?UTF-8?q?style(ui):=20=E4=B8=BB=E9=A1=B5=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=B0=BA=E5=AF=B8=E6=8C=89=E8=AE=BE=E8=AE=A1=E7=A8=BF?= =?UTF-8?q?=E6=94=B6=E7=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 清听 28->24、媒体库 22->20、我的收藏标题 22->20 - 本地音乐/最近播放按钮文字 14->13 - 收藏项:封面 44->32、标题 16->13、副标题 13->11, padding 2->0,minVerticalPadding 0 - 行高约 90dp -> 71dp,更接近设计稿的密度 --- lib/pages/home_page.dart | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index c5783ee..0493521 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -458,19 +458,20 @@ class _HomePageState extends BaseState { 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 { ), 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 { const Text( '清听', style: TextStyle( - fontSize: 28, + fontSize: 24, fontWeight: FontWeight.w600, color: Colors.white, ), @@ -738,7 +739,7 @@ class _HomePageState extends BaseState { const Text( '媒体库', style: TextStyle( - fontSize: 22, + fontSize: 20, fontWeight: FontWeight.w500, color: Color(0xFFB8D4D0), ), @@ -866,7 +867,7 @@ class _HomePageState extends BaseState { const Text( '本地音乐', style: TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.w400, color: Colors.white70, ), @@ -894,7 +895,7 @@ class _HomePageState extends BaseState { const Text( '最近播放', style: TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.w400, color: Colors.white70, ), @@ -932,7 +933,7 @@ class _HomePageState extends BaseState { Text( _homeTab == 0 ? '我的收藏' : '歌单列表', style: const TextStyle( - fontSize: 22, + fontSize: 20, fontWeight: FontWeight.w500, color: Color(0xFFB8D4D0), ),