FlutterCropCameraController class

FlutterCropCameraController acts as the bridge between the Flutter UI and the native platform implementations (Android CameraX / iOS AVFoundation).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textureId ↔ int?
The unique ID of the camera preview texture provided by the native side. This ID is passed to the Texture widget to render the camera feed.
getter/setter pair

Methods

cropImage({required String path, required int x, required int y, required int width, required int height, int rotationDegrees = 0, bool flipX = false, int quality = 100}) → Future<String?>
Performs cropping, rotation, and flipping on a saved image bitmap. This operation is performed on the native side for performance.
getMaxZoom() → Future<double>
Gets the maximum native zoom supported by the current camera.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickImage() → Future<String?>
Launches the native gallery picker and returns the path of the selected image.
pickImages() → Future<List<String>>
Launches the native gallery picker and returns the paths of the selected images.
setFlashMode(String mode) → Future<void>
Sets the camera flash mode ("off", "auto", "on").
setZoom(double zoom) → Future<void>
Sets the digital zoom level.
startCamera({double quality = 1.0, dynamic cameraPreference, dynamic aspectRatio}) → Future<int?>
Starts the camera on the native platform with the specified configuration. Returns the texture ID required for the preview.
stopCamera() → Future<void>
Stops the camera and releases all native resources.
switchCamera() → Future<void>
Toggles between the front and rear cameras.
takePicture() → Future<String?>
Captures a static image and saves it to the temporary directory. Returns the file path of the captured image.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited