浏览代码

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();
}
}
}


正在加载...
取消
保存