fix(player): 恢复详情与选集全屏播放
This commit is contained in:
1 parent
04fddce1d1
commit
1c94b727fb
14 files changed
+102
-1280
No files matched your search
@@ -531,18 +531,6 @@ class PlayerLogic extends ChangeNotifier {
|
||||
: null;
|
||||
}
|
||||
|
||||
bool get hasNextEpisode => nextVisibleIndex(session.currentIndex) != null;
|
||||
|
||||
Future<void> playNextEpisode() async {
|
||||
final next = nextVisibleIndex(session.currentIndex);
|
||||
if (next == null || !pages.hasClients) return;
|
||||
await pages.animateToPage(
|
||||
visibleIndices.indexOf(next),
|
||||
duration: const Duration(milliseconds: 250),
|
||||
curve: Curves.easeOutCubic,
|
||||
);
|
||||
}
|
||||
|
||||
void beginScrub(VideoPlayerPort player) {
|
||||
if (session.active != player) return;
|
||||
scrubbingPlayer = player;
|
||||
|
||||
Reference in new issue
Block a user