From e29d1cc5f1eeb2ccc4a9ee3e4ef394d1303a77a2 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 12 Sep 2024 21:58:30 +0800 Subject: [PATCH] fix: data case --- lib/pages/video/detail/view.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index fe30760f..2c6a491e 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -102,10 +102,12 @@ class _VideoDetailPageState extends State }); videoDetailController.cid.listen((p0) { if (!context.mounted) return; - videoPlayerServiceHandler.onVideoDetailChange( - (bangumiIntroController.loadingState.value as Success).response, - p0, - ); + if (bangumiIntroController.loadingState.value is Success) { + videoPlayerServiceHandler.onVideoDetailChange( + (bangumiIntroController.loadingState.value as Success).response, + p0, + ); + } }); autoExitFullscreen = setting.get(SettingBoxKey.enableAutoExit, defaultValue: true);