FlutterCropCameraWindows class

Windows implementation of FlutterCropCameraPlatform.

Camera preview and capture use a native C++/WinRT method channel (FlutterCropCameraPlugin) which registers a FlutterTexture.

Gallery picking is handled entirely in Dart via package:file_selector (IFileOpenDialog) so no native code is needed for that.

Image cropping is done in pure Dart via dart:ui Canvas — identical to the Web implementation, but the result is written to a temp file.

Inheritance

Constructors

FlutterCropCameraWindows()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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?>
Crops, rotates, and flips an image.
override
getMaxZoom() Future<double>
Gets the maximum supported zoom level.
override
getPlatformVersion() Future<String?>
Retrieves the platform version (debug/info utility).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickImage() Future<String?>
Picks a single image from the gallery.
override
pickImages() Future<List<String>?>
Picks multiple images from the gallery.
override
setFlashMode(String mode) Future<void>
Flash is not supported on standard Windows webcams — silently ignored.
override
setZoom(double zoom) Future<void>
Zoom is not supported on standard Windows webcams — silently ignored.
override
startCamera({double quality = 1.0, String facing = 'back', String aspectRatio = '3:4'}) Future<int?>
Starts the camera with the specified configuration.
override
stopCamera() Future<void>
Stops the camera and releases resources.
override
switchCamera() Future<int?>
Toggles between front and rear cameras.
override
takePicture() Future<String?>
Captures a static image and returns its path.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith() → void
Called automatically by Flutter's generated dart_plugin_registrant.dart.