mod: 依赖升级
This commit is contained in:
@ -9,7 +9,6 @@ import 'package:pilipala/pages/video/detail/reply/index.dart';
|
||||
import 'package:pilipala/pages/video/detail/controller.dart';
|
||||
import 'package:pilipala/pages/video/detail/introduction/index.dart';
|
||||
import 'package:pilipala/pages/video/detail/related/index.dart';
|
||||
import 'package:wakelock/wakelock.dart';
|
||||
|
||||
import 'widgets/app_bar.dart';
|
||||
|
||||
@ -45,7 +44,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
videoDetailController.markHeartBeat();
|
||||
playerStatus = status;
|
||||
if (status == PlayerStatus.playing) {
|
||||
Wakelock.enable();
|
||||
isPlay = false;
|
||||
isShowCover = false;
|
||||
setState(() {});
|
||||
@ -54,7 +52,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
videoDetailController.timer!.cancel();
|
||||
isPlay = true;
|
||||
setState(() {});
|
||||
Wakelock.disable();
|
||||
// 播放完成停止 or 切换下一个
|
||||
if (status == PlayerStatus.completed) {}
|
||||
}
|
||||
@ -77,7 +74,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
await _meeduPlayerController!.dispose();
|
||||
_meeduPlayerController = null;
|
||||
// The next line disables the wakelock again.
|
||||
await Wakelock.disable();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user