fix: headerControl bvid丢失

This commit is contained in:
guozhigq
2024-03-01 23:55:19 +08:00
parent b3e162c8d3
commit d6da2a8a47
5 changed files with 33 additions and 12 deletions

View File

@ -27,11 +27,13 @@ class HeaderControl extends StatefulWidget implements PreferredSizeWidget {
this.controller,
this.videoDetailCtr,
this.floating,
this.bvid,
super.key,
});
final PlPlayerController? controller;
final VideoDetailController? videoDetailCtr;
final Floating? floating;
final String? bvid;
@override
State<HeaderControl> createState() => _HeaderControlState();
@ -62,7 +64,8 @@ class _HeaderControlState extends State<HeaderControl> {
speedsList = widget.controller!.speedsList;
fullScreenStatusListener();
heroTag = Get.arguments['heroTag'];
videoIntroController = Get.put(VideoIntroController(), tag: heroTag);
videoIntroController =
Get.put(VideoIntroController(bvid: widget.bvid!), tag: heroTag);
}
void fullScreenStatusListener() {