From 0e97e0acd150a86b0ea43289b194be0250e1e5d1 Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 8 Mar 2024 00:58:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B1=8F=E8=94=BD=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=B6header=5Fcontroller=E4=B8=ADGet.argu?= =?UTF-8?q?ments=E4=B8=BAnull=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/widgets/header_control.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/video/detail/widgets/header_control.dart b/lib/pages/video/detail/widgets/header_control.dart index f5d78cafc..a7129dac1 100644 --- a/lib/pages/video/detail/widgets/header_control.dart +++ b/lib/pages/video/detail/widgets/header_control.dart @@ -62,7 +62,9 @@ class _HeaderControlState extends State { super.initState(); videoInfo = widget.videoDetailCtr!.data; listenFullScreenStatus(); - heroTag = Get.arguments['heroTag']; + if (Get.arguments != null) { + heroTag = Get.arguments['heroTag']; + } videoIntroController = Get.put(VideoIntroController(), tag: heroTag); horizontalScreen = setting.get(SettingBoxKey.horizontalScreen, defaultValue: false);