image_cropper_view_overlay 0.0.4 copy "image_cropper_view_overlay: ^0.0.4" to clipboard
image_cropper_view_overlay: ^0.0.4 copied to clipboard

A widget to crop your images. It supports pan, zoom, rotate gestures.

My Image Cropper View #

This Flutter package is a fork of the image_cropper_view package. I modified the original package to add an overlay image feature to suit my needs. All credits belong to the original owner.

Original Package Details #

Image Overlay Feature Modification #

I've enhanced the functionality of this package by introducing a new feature: the ability to add an image overlay to the crop area. This modification enables users to superimpose another image atop the cropped image, providing additional customization and creative possibilities.

With this enhancement, the overlayImage parameter has been introduced to the cropImage function. By specifying the desired overlay image, developers can seamlessly incorporate overlays into their cropped images. For instance, you can overlay stickers, logos, or decorative elements onto the cropped image, enhancing its visual appeal and functionality.

This modification extends the versatility of the package, empowering developers to create more immersive and customized user experiences within their applications.

WITHOUT OVERLAY

My Image

WITH OVERLAY

My Image

Features #

  • Supports pan, zoom, rotate gestures to position your image
  • Works on desktop, mouse wheel to zoom, ctrl + mouse wheel to rotate
  • Only dart code included, no native dependency
  • Configurable control buttons
  • Support setting clip shape to either circle, rect, or rrect

Getting Started #

Begin utilizing My Image Cropper View by integrating it as a new route within your application, enabling seamless and efficient image cropping.

Usage #

Integrate the package by following these simple steps:

// Example usage of My Image Cropper View
Uint8List? result = await ImageCropperViewOverlay.cropImage(
  context: context,
  image: Image.file(imageFile),
  clipShape: ClipShape.circle,
  overlayImage: Image.asset("assets/smile.png"), // Optional overlay property
);
2
likes
120
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A widget to crop your images. It supports pan, zoom, rotate gestures.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on image_cropper_view_overlay