app/widgets/camera/camera_picker library

Classes

AndroidEditor
AssetEntity
Used to describe an asset.
AssetPathEntity
asset entity, for entity info.
CameraController
Controls a device camera.
CameraDescription
Properties of a camera device.
CameraImage
A single complete image buffer from the platform camera.
CameraPicker
CameraPickerState
CameraPreview
A widget showing a live camera preview.
CameraValue
The state of a CameraController.
DateTimeCond
CreateDate
DurationConstraint
Constraints of duration.
Editor
FilterOption
Filter option 筛选选项的详细情况
FilterOptionGroup
Filter option for get asset.
ImageFormat
Describes how pixels are represented in an image.
IosEditor
For iOS
LatLng
Longitude and latitude
OrderOption
PermisstionRequestOption
PhotoCachingManager
Cached thumbnails for album management.
PhotoManager
use the class method to help user load asset list and asset info.
Plane
A single color plane of image data.
PMProgressHandler
Only works in iOS.
PMProgressState
Status of progress for PMProgressHandler.
RequestType
SizeConstraint
Constraints of asset pixel width and height.
ThumbOption
XFile
A CrossFile is a cross-platform, simplified File abstraction.

Enums

AssetType
asset type
CameraLensDirection
The direction the camera is facing.
DeliveryMode
ExposureMode
The possible exposure modes that can be set for a camera.
FlashMode
The possible flash modes that can be set for a camera
FocusMode
The possible focus modes that can be set for a camera.
ImageFormatGroup
Group of image formats that are comparable across Android and iOS platforms.
IosAccessLevel
OrderOptionType
PermissionState
Android: The effective values are authorized or denied.
PMRequestState
Current asset loading status
ResizeContentMode
Resize content mode
ResizeMode
Resize strategy, useful when need exact image size. It's must be used only for iOS Apple resize mode documentation
ResolutionPreset
Affect the quality of video recording and image capture:
ThumbFormat
For generality, only support jpg and png.

Functions

availableCameras() Future<List<CameraDescription>>
Completes with a list of available cameras.

Typedefs

onLatestImageAvailable = dynamic Function(CameraImage image)
Signature for a callback receiving the a camera image.

Exceptions / Errors

CameraException
This is thrown when the plugin reports an error.