fix(recommend): 恢复进度拖动前浮层状态
This commit is contained in:
1 parent
c478eebb0e
commit
b6666290ba
7 files changed
+47
-43
No files matched your search
@@ -119,7 +119,6 @@ class _PlayerPageState extends State<PlayerPage>
|
||||
double _playbackSpeed = 1.0;
|
||||
bool _boosting = false;
|
||||
bool _scrubbing = false;
|
||||
bool _clearScreenFromScrub = false;
|
||||
double? _speedBeforeBoost;
|
||||
bool? _chromeBeforeBoost;
|
||||
|
||||
@@ -315,26 +314,24 @@ class _PlayerPageState extends State<PlayerPage>
|
||||
widget.onScrubVisibilityChanged?.call(value);
|
||||
}
|
||||
|
||||
void _finishFeedScrub() {
|
||||
void _finishFeedScrub(bool wasVisible) {
|
||||
setState(() {
|
||||
_scrubbing = false;
|
||||
_chromeVisible = false;
|
||||
_clearScreenFromScrub = true;
|
||||
_chromeVisible = wasVisible;
|
||||
});
|
||||
widget.onScrubVisibilityChanged?.call(!wasVisible);
|
||||
}
|
||||
|
||||
void _cancelFeedScrub() {
|
||||
logic.cancelScrub();
|
||||
_scrubbing = false;
|
||||
_chromeVisible = true;
|
||||
_clearScreenFromScrub = false;
|
||||
}
|
||||
|
||||
void _restoreFeedChrome() {
|
||||
setState(() {
|
||||
_scrubbing = false;
|
||||
_chromeVisible = true;
|
||||
_clearScreenFromScrub = false;
|
||||
});
|
||||
widget.onScrubVisibilityChanged?.call(false);
|
||||
}
|
||||
@@ -749,11 +746,7 @@ class _PlayerPageState extends State<PlayerPage>
|
||||
? null
|
||||
: () => _openUnlockSheet(context, index, episode),
|
||||
),
|
||||
if (widget.homeMode &&
|
||||
!_chromeVisible &&
|
||||
!_boosting &&
|
||||
!_scrubbing &&
|
||||
!_clearScreenFromScrub)
|
||||
if (widget.homeMode && !_chromeVisible && !_boosting && !_scrubbing)
|
||||
Positioned(
|
||||
right: 12,
|
||||
bottom: 56,
|
||||
|
||||
Reference in new issue
Block a user