style(ui): 小窗封面居中并加大,控件上移 8px

- 封面尺寸 30% -> 38%(上限 380dp),并在窗口中水平居中
- 控件行底部留白 12 -> 20(整体上移 8px)
This commit is contained in:
2026-11-01 12:11:16 +08:00
parent 5a1910bee4
commit 9a932e92d4
+8 -6
View File
@@ -317,7 +317,7 @@ class _PlayerPageState extends BaseState<PlayerPage> {
final screen = MediaQuery.of(context).size;
// 小窗:封面改为固定方形(约 30% 可用高度),给控件留出空间
final coverSide = compact
? (screen.height * 0.30).clamp(140.0, 340.0)
? (screen.height * 0.38).clamp(160.0, 380.0)
: null;
final cover = ClipRRect(
@@ -346,10 +346,12 @@ class _PlayerPageState extends BaseState<PlayerPage> {
children: [
// ---- 封面 ----
if (coverSide != null)
SizedBox(
width: coverSide,
height: coverSide,
child: cover,
Center(
child: SizedBox(
width: coverSide,
height: coverSide,
child: cover,
),
)
else
AspectRatio(
@@ -440,7 +442,7 @@ class _PlayerPageState extends BaseState<PlayerPage> {
// ---- 控制 ----
_buildControlButtons(service, song, isPlaying),
// 底部多留 50px:控制行整体上移
SizedBox(height: compact ? 12 : 45),
SizedBox(height: compact ? 20 : 45),
],
),
);