fix(flutter): 底栏右侧改为清屏

This commit is contained in:
Zhou Weidong committed 2026-10-20 11:19:14 +08:00
1 parent 9429257d62
commit 1666bc220e
7 files changed
+51 -18

No files matched your search

@@ -18,6 +18,7 @@ class PlayerMoreState {
required this.speed,
required this.qualities,
required this.textScale,
required this.pipAvailable,
});
/// 当前倍速。
@@ -28,6 +29,9 @@ class PlayerMoreState {
/// 当前文字缩放比例。
final double textScale;
/// 设备是否提供画中画入口。
final bool pipAvailable;
}
/// 更多面板动作集合。
@@ -39,6 +43,7 @@ class PlayerMoreActions {
required this.onClear,
required this.onDownload,
required this.onReport,
this.onPip,
});
/// 倍速变化。
@@ -55,6 +60,9 @@ class PlayerMoreActions {
/// 投诉当前剧。
final VoidCallback onReport;
/// 进入画中画;平台不支持时为空。
final VoidCallback? onPip;
}
/// K29 播放页白色更多面板。
@@ -136,6 +144,13 @@ class _PlayerMoreSheetState extends State<PlayerMoreSheet> {
title: l10n.offlineCache,
onTap: () => _closeThen(widget.actions.onDownload),
),
if (widget.state.pipAvailable && widget.actions.onPip != null)
_enabledRow(
key: const Key('player-more-pip'),
icon: Icons.picture_in_picture_alt_rounded,
title: l10n.pictureInPicture,
onTap: () => _closeThen(widget.actions.onPip!),
),
_textSizeRow(l10n),
_disabledRow(
key: const Key('player-more-cast'),