diff --git a/lib/pages/player_page.dart b/lib/pages/player_page.dart index 9f61612..3b2d605 100644 --- a/lib/pages/player_page.dart +++ b/lib/pages/player_page.dart @@ -431,8 +431,7 @@ class _PlayerPageState extends BaseState { ), ], - if (!compact) const Spacer(), - if (compact) const SizedBox(height: 12), + const Spacer(), // ---- 进度 ---- _buildProgressSection(service), @@ -446,10 +445,17 @@ class _PlayerPageState extends BaseState { ), ); - // 小窗/横屏:内容超出时允许滚动,避免控件被挤出屏幕 - return compact - ? SingleChildScrollView(child: padded) - : padded; + if (!compact) return padded; + + // 小窗/横屏:内容超高时可滚动;内容不足时撑满,避免底部大片空白 + return LayoutBuilder( + builder: (context, constraints) => SingleChildScrollView( + child: ConstrainedBox( + constraints: BoxConstraints(minHeight: constraints.maxHeight), + child: IntrinsicHeight(child: padded), + ), + ), + ); } /// 左页:文件信息