Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-10 11:23:43 +08:00
parent 796494e53f
commit b0d9a1dada
2 changed files with 12 additions and 3 deletions

View File

@@ -104,7 +104,11 @@ class Utils {
}
/// 定时关闭
static void scheduleExit(context, isFullScreen, [bool isLive = false]) {
static void scheduleExit(BuildContext context, isFullScreen,
[bool isLive = false]) {
if (!context.mounted) {
return;
}
const List<int> scheduleTimeChoices = [0, 15, 30, 45, 60];
const TextStyle titleStyle = TextStyle(fontSize: 14);
if (isLive) {
@@ -567,6 +571,9 @@ class Utils {
required Function isFullScreen,
double? padding,
}) {
if (!context.mounted) {
return;
}
Get.generalDialog(
barrierLabel: '',
barrierDismissible: true,