[Feature request]: Hide platform version details for Permission.photos #1149
Labels
P2
Important issues not at the top of the work list.
platform: android
Issue is related to the Android platform.
refactor
Issues marked with refactor should be considered when refactoring the plugin.
type: enhancement
New feature or request
Is there already an issue requesting this feature?
Please select affected platform(s)
Use case
When using permission_handler to check for photos permission you must check the platform and the Android version like so:
This is explained in the documentation for
Permission.photos
here. This runs against the design goal of Flutter plugins to hide platform-specific details whenever possible.Proposal
I propose that
Permission.photos
should be changed to do the platform and Android version checks itself so that it behaves as expected on lower Android versions.This would be a breaking change, but it would serve to fix this issue and seems worth it since most users of this plugin are in the future.
Specific requirements or considerations
No response
Additional information or context
No response
The text was updated successfully, but these errors were encountered: