Browse Source

1.优化通知显示

tags/0.0.13+1
“yanghuaxuan” 3 years ago
parent
commit
d460c22914
1 changed files with 1 additions and 3 deletions
  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 View File

@@ -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…
Cancel
Save