mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
refa video params
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -74,6 +74,8 @@ class VideoDetailPageV extends StatefulWidget {
|
||||
|
||||
class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
with TickerProviderStateMixin, RouteAware, WidgetsBindingObserver {
|
||||
final heroTag = Get.arguments['heroTag'];
|
||||
|
||||
late final VideoDetailController videoDetailController;
|
||||
late final VideoReplyController _videoReplyController;
|
||||
PlPlayerController? plPlayerController;
|
||||
@@ -86,8 +88,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
ScrollController get introScrollController =>
|
||||
_introScrollController ??= ScrollController();
|
||||
|
||||
late String heroTag;
|
||||
|
||||
bool get autoExitFullscreen =>
|
||||
videoDetailController.plPlayerController.autoExitFullscreen;
|
||||
bool get autoPlayEnable =>
|
||||
@@ -130,9 +130,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
super.initState();
|
||||
|
||||
PlPlayerController.setPlayCallBack(playCallBack);
|
||||
if (Get.arguments != null && Get.arguments['heroTag'] != null) {
|
||||
heroTag = Get.arguments['heroTag'];
|
||||
}
|
||||
videoDetailController = Get.put(VideoDetailController(), tag: heroTag);
|
||||
|
||||
if (videoDetailController.showReply) {
|
||||
|
||||
Reference in New Issue
Block a user