Skip to content
pubscout

crop_image

1.0.17, released 11 months ago by tramontana.co.hu

An image cropper widget written in pure Dart with 90-degree rotation support.

WASM-ready
$ flutter pub add crop_image
Source repository

What it does

Provides a customizable crop image widget that works across mobile, web, and desktop without relying on native mobile cropper packages. Allows programmatic control over crop rectangles, aspect ratios, and rotations.

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

Use it when

  • You need a cross-platform image cropper widget built entirely in Dart
  • You need to customize the appearance of the crop grid, corners, and scrim
  • You want to programmatically control aspect ratios, sizes, and rotations

Skip it when

  • You are using Flutter Web with the HTML web renderer and need to call croppedBitmap() (CanvasKit is required)
  • You want a fully featured native photo editing UI kit with filters and drawings

Strengths

  • Written completely in Dart without external native mobile dependencies
  • Supports all platforms supported by Flutter: mobile, web, and desktop
  • Offers a CropController for programmatic manipulation of crop and rotation

Weaknesses

  • croppedBitmap() and croppedImage() result in an exception on Flutter Web using the HTML web renderer

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

final controller = CropController(
  aspectRatio: 1,
  defaultCrop: Rect.fromLTRB(0.1, 0.1, 0.9, 0.9),
);

CropImage(
  controller: controller,
  image: Image.asset('path_to_image.png'),
);

Alternatives

Packages that do the same job and could replace crop_image.