easy_image_cropper 1.0.0 copy "easy_image_cropper: ^1.0.0" to clipboard
easy_image_cropper: ^1.0.0 copied to clipboard

A simple image cropping widget that easily allows cropping avatars and other images.

easy_avator_cropper #

A simple image cropping widget that easily allows cropping avatars and other images. It ensures a consistent cropping experience on both iOS and Android.

ios android

Quick start 🚀 #

  1. Install this package.
    flutter pub get easy_avator_cropper
    

Usage #

Step 1: Create the Cropping UI #

Use the ImgCrop widget to create the cropping UI. The size of the UI is determined by its parent container.

///...
Center(
  child: ImgCrop(
    key: cropKey,
    chipShape: ChipShape.circle,
    maximumScale: 1,
    image: FileImage(File(img.path)),
  ),
)

Usage #

Step 1: Create the Cropping UI Use the ImgCrop component to create the cropping UI. The size of the UI is determined by its parent container.

///...
Center(
  child: ImgCrop(
    key: cropKey,
    chipShape: ChipShape.circle,
    maximumScale: 1,
    image: FileImage(File(img.path)),
  ),
)

Note that cropKey must be a GlobalKey

step2: Get the Cropped Image #

final crop = cropKey.currentState;
final croppedFile = await crop.cropCompleted(File(img.path), pictureQuality: 900);

pictureQuality represents the Size of the cropped image.

10
likes
0
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

A simple image cropping widget that easily allows cropping avatars and other images.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, image

More

Packages that depend on easy_image_cropper

Packages that implement easy_image_cropper