fix: 视频介绍页Get.arguments为空

This commit is contained in:
orz12
2024-03-08 05:27:37 +08:00
parent b78a52148c
commit 83338da24c

View File

@@ -49,7 +49,9 @@ class _VideoIntroPanelState extends State<VideoIntroPanel>
super.initState();
/// fix 全屏时参数丢失
heroTag = Get.arguments['heroTag'];
if (Get.arguments != null) {
heroTag = Get.arguments['heroTag'];
}
videoIntroController = Get.put(VideoIntroController(), tag: heroTag);
_futureBuilderFuture = videoIntroController.queryVideoIntro();
videoIntroController.videoDetail.listen((value) {