瀏覽代碼

1.优化通知显示

tags/0.0.13+1
“yanghuaxuan” 3 年之前
父節點
當前提交
d460c22914
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      lib/dialog/global_dialog/notification_setting_dialog/notification_setting_dialog.dart

+ 1
- 3
lib/dialog/global_dialog/notification_setting_dialog/notification_setting_dialog.dart 查看文件

@@ -33,9 +33,7 @@ class NotificationSettingDialog extends StatelessWidget {

PermissionStatus status = await Permission.notification.status;
if (status != PermissionStatus.granted) {
return await showCupertinoDialog(
context: context, builder: (_) => NotificationSettingDialog(model));

await Permission.notification.request();
}
}
}


Loading…
取消
儲存