An Android implementation of camera
that uses the CameraX library.
Note: This package is under development, so please note the missing features and limitations, but otherwise feel free to try out the current implementation and provide any feedback by filing issues under flutter/flutter
with [camerax]
in the title, which will be actively triaged.
This package is non-endorsed; the endorsed Android implementation of camera
is camera_android
. To use this implementation of the plugin instead of camera_android
, you will need to specify it in your pubsepc.yaml
file as a dependency in addition to camera
:
dependencies: # ...along with your other dependencies camera: ^0.10.4 camera_android_camerax: ^0.5.0
240p resolution configuration for video recording is unsupported by CameraX, and thus, the plugin will fall back to 480p if configured with a ResolutionPreset
.
lockCaptureOrientation
& unLockCaptureOrientation
are unimplemented.
Calling setFlashMode
with mode FlashMode.torch
currently does nothing.
setExposureMode
, setExposurePoint
, & setExposureOffset
are unimplemented.
setFocusMode
& setFocusPoint
are unimplemented.
setZoomLevel
is unimplemented.
Calling startVideoCapturing
with VideoCaptureOptions
configured with maxVideoDuration
and streamOptions
is currently unsupported do to the limitations of the CameraX library and the platform interface, respectively, and thus, those parameters will silently be ignored.
For more information on contributing to this plugin, see CONTRIBUTING.md
.