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