g123k / flutter_torch_compat

A plugin to enable or disable the torch of a device that works both on Android (including Android 4.x) and iOS.
https://pub.dev/packages/torch_compat
Apache License 2.0
7 stars 22 forks source link

Second attempt regarding Android Permissions. #14

Closed jeffmikels closed 2 years ago

jeffmikels commented 3 years ago

The plugin should only request the permissions that are actually needed according to the Android specifications.

This branch changes the requested permissions to only use the FLASHLIGHT.

However, for compatibility with older devices, instructions are provided in the README for cases where older devices must be supported as well.