From 83338da24c6cea3ceb461cd54c96fddd52fe0ac4 Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 8 Mar 2024 05:27:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=86=E9=A2=91=E4=BB=8B=E7=BB=8D?= =?UTF-8?q?=E9=A1=B5Get.arguments=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/introduction/view.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index 96ae0181..a9163d3e 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -49,7 +49,9 @@ class _VideoIntroPanelState extends State 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) {