Skip to content
pubscout

cropperx

1.1.1, released 4 years ago by speedkodi.com

An image cropper package made in Flutter to crop and rotate images.

WASM-ready
$ flutter pub add cropperx
Source repository

What it does

CropperX provides a Flutter widget that allows users to crop and rotate images directly inside the app. It supports multiple overlay types including circles, rectangles, and grids. The cropped image can be retrieved as bytes using a global key reference.

AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an in-app UI for users to crop and rotate images
  • You want support for custom overlay guides like circles or grid lines

Skip it when

  • You need a full-featured image picker instead of a cropping widget
  • You need non-widget-based server-side or background image processing without UI

Strengths

  • Pure Flutter implementation
  • Supports multiple overlay shapes and grid types
  • Supports image rotation with custom turns

Weaknesses

  • Limited to what is provided by the custom widget and GlobalKey mechanism
  • Not documented for advanced image manipulation beyond cropping and rotating

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

final _cropperKey = GlobalKey(debugLabel: 'cropperKey');

Cropper(
    cropperKey: _cropperKey,
    image: Image.network(
        'https://i.pinimg.com/originals/6b/4d/18/6b4d18c0b756ab20c3591490dfc10090.jpg',
    ),
);

final imageBytes = await Cropper.crop(
    cropperKey: _cropperKey,
);

Alternatives

Packages that do the same job and could replace cropperx.