builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
259 stars 258 forks source link

Get Permission Status #480

Open jaiendev opened 1 year ago

jaiendev commented 1 year ago

Describe the solution you'd like I think you should add the getPermissionStatus() function when denied to be able to check and show a dialog that navigates to app settings

IVLIVS-III commented 1 year ago

What exactly should the function itself do, and what should the function enable developers to get done?

If the responsibility of the proposed function should be to only check whether permissions have been granted, and the logic of showing a dialog and navigating to system settings when denied will be outside the scope of this function, try the following instead:

hasPermissions returns a bool indicating if permissions have been granted.

In case the proposed function should also handle the dialog and navigation to system settings, how do you imagine handling different locales?