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.
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.
- crop_your_image
Flutter widget to embed customizable image cropping UI anywhere in your widget tree.
87Compare - extended_image
Extended image library with caching, placeholders, zoom/pan, slide-out, and crop editor.
80Compare - image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare - native_image_cropper
A Flutter plugin for native rectangular and circular image cropping.
70Compare