custom_cropper 1.0.1 copy "custom_cropper: ^1.0.1" to clipboard
custom_cropper: ^1.0.1 copied to clipboard

discontinued
outdated

Dart native image cropper package that allows cropping images with a custom and adjustable shape.

custom_cropper #

Dart native image cropper package that allows cropping images with a custom and adjustable shape.

💡 For Android & iOS developers. 💡

Please check a great package that does auto edge detection for you, while still allows adjusting edges and cropping: auto_crop - available for Android & iOS only.

Preview #

Example usage #

Basic usage #

Widget build(Build context) {
    ...
    // Define CustomCropper widget in the tree and pass the CropController.
    CustomCropper(
        imageFile,
        controller: _cropController,
    ),
    ...
    // Call crop method on CropController to get 
    // the cropped image result (Uint8List) data.
    ElevatedButton(
        onPressed: () async {
            final croppedData = await _cropController.crop();
        },
        child: const Text('Crop image'),
    ),
}

Full example #

Full example showing how to set up and use CustomCropper. Source code

0
likes
0
points
17
downloads

Publisher

verified publishereterkit.com

Weekly Downloads

Dart native image cropper package that allows cropping images with a custom and adjustable shape.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on custom_cropper