From 192cd60a4ffe171b2beb81246a9320278414178e Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Mon, 24 Feb 2025 10:31:14 +0800 Subject: [PATCH] fix: get video progress Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/detail/controller.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 012fe45b..01bca7fe 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -1070,7 +1070,7 @@ class VideoDetailController extends GetxController if (data.dash == null && data.durl != null) { videoUrl = data.durl!.first.url!; audioUrl = ''; - if (Get.arguments['progress'] != null) { + if (Get.arguments?['progress'] != null) { this.defaultST = Duration(milliseconds: Get.arguments['progress']); Get.arguments['progress'] = null; } else { @@ -1193,7 +1193,7 @@ class VideoDetailController extends GetxController audioUrl = ''; } // - if (Get.arguments['progress'] != null) { + if (Get.arguments?['progress'] != null) { this.defaultST = Duration(milliseconds: Get.arguments['progress']); Get.arguments['progress'] = null; } else {