From d460c22914e0247cd2a4748f0b26948e596985b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Tue, 13 Apr 2021 18:35:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E9=80=9A=E7=9F=A5=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification_setting_dialog.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dialog/global_dialog/notification_setting_dialog/notification_setting_dialog.dart b/lib/dialog/global_dialog/notification_setting_dialog/notification_setting_dialog.dart index 6d9431f..3ccf9cd 100644 --- a/lib/dialog/global_dialog/notification_setting_dialog/notification_setting_dialog.dart +++ b/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(); } } }