fix(flutter): 清屏态进度可拖动并长按恢复播放
This commit is contained in:
1 parent
8327c1dd13
commit
b2c219d6bd
3 files changed
+103
-9
No files matched your search
@@ -142,6 +142,8 @@ class _PlayerPageState extends State<PlayerPage> with WidgetsBindingObserver {
|
||||
/// 长按两侧:切 2 倍速并清屏,记下进入前的状态用于松手恢复。
|
||||
void _startBoost() {
|
||||
if (_boosting) return;
|
||||
// 暂停时长按两侧先恢复播放,再进入 2 倍速。
|
||||
if (!logic.session.userWantsPlay) logic.session.setUserWantsPlay(true);
|
||||
setState(() {
|
||||
_boosting = true;
|
||||
_speedBeforeBoost = _playbackSpeed;
|
||||
@@ -499,15 +501,6 @@ class _PlayerPageState extends State<PlayerPage> with WidgetsBindingObserver {
|
||||
? null
|
||||
: () => _openUnlockSheet(context, index, episode),
|
||||
),
|
||||
if (widget.homeMode && !_chromeVisible)
|
||||
Positioned.fill(
|
||||
child: GestureDetector(
|
||||
key: const Key('home-feed-video-tap'),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () =>
|
||||
logic.session.setUserWantsPlay(!logic.session.userWantsPlay),
|
||||
),
|
||||
),
|
||||
if (widget.homeMode && !_chromeVisible)
|
||||
Positioned(
|
||||
right: 12,
|
||||
|
||||
Reference in new issue
Block a user