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

torch does not work on Nexus S, Android v4.1.2 #11

Open speaking-in-code opened 3 years ago

speaking-in-code commented 3 years ago

I have an old Android Nexus S, running Android v4.1.2.

The flash on that phone does not work with flutter_torch_compat.

Works fine on newer phones, I suspect this is an issue specific to phones relying on the android.hardware.camera API (api < 21) vs the Camera2 API (api >= 21).

dayron9110 commented 3 years ago

Any updates?