opt: notify-debugger-on-exception (#1750)

This commit is contained in:
My-Responsitories
2025-11-17 21:49:36 +08:00
committed by GitHub
parent 76c2de4394
commit 0f8166620e
14 changed files with 37 additions and 74 deletions

View File

@@ -190,6 +190,7 @@ class VideoDetailController extends GetxController
}
}
@pragma('vm:notify-debugger-on-exception')
void setVideoHeight() {
try {
final isVertical = firstVideo.width != null && firstVideo.height != null
@@ -243,9 +244,7 @@ class VideoDetailController extends GetxController
animationController.forward(from: 1 - scrollCtr.offset / videoHeight);
}
}
} catch (_) {
if (kDebugMode) rethrow;
}
} catch (_) {}
}
void scrollListener() {
@@ -1992,6 +1991,7 @@ class VideoDetailController extends GetxController
);
}
@pragma('vm:notify-debugger-on-exception')
Future<void> onCast() async {
SmartDialog.showLoading();
final res = await VideoHttp.tvPlayUrl(
@@ -2021,9 +2021,7 @@ class VideoDetailController extends GetxController
tag: heroTag,
).videoDetail.value.title;
}
} catch (_) {
if (kDebugMode) rethrow;
}
} catch (_) {}
if (kDebugMode) {
debugPrint(title);
}