This is our custom Camera that enabling you to tap focus, zoom, flashlight.
Note: This plugin use android.hardware.Camera, I have tried to migrate it to android.hardware.Camera2 in development branch, but with lack of understandings I found out so many inconsistency and find it kinda waste of time since Android is developing their new camera CameraX. So until CameraX has released its stable version, I think I will still use this.
There's still so much feature that I haven't include such as video recording, auto white balance, etc.
And please note that Flutter have their own camera plugin, but they haven't include focus and flashlight feature there.
adv_camera as a dependency in your pubspec.yaml file.
Add two rows to the
- one with the key
Privacy - Camera Usage Descriptionand a usage description.
- and one with the key
Privacy - Microphone Usage Descriptionand a usage description.
Or in text format add the key:
<key>NSCameraUsageDescription</key> <string>Can I use the camera please?</string> <key>NSMicrophoneUsageDescription</key> <string>Can I use the mic please?</string>
For Android's permission, you have to configure it yourself (using Dexter, etc.), or you can manually turn on its permission at setting.
This plugin is made to support my other plugin adv_image_picker, you can see that its permission is handled there.
You can find the full example, here
- AndroidX camera integration
- Video integration for both Android and IOS
- More testing and bug fixing