crop
0.5.5, released 4 years ago by pwa.ir
Crop any widget or image in Flutter using 100% pure Dart code.
WASM-ready
What it does
Provides a customizable Crop widget that allows users to crop any widget or image within Flutter apps. Supports scaling, rotation, and custom offsets without depending on native platform APIs.
AI-written summary of version 0.5.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to let users crop images or custom widgets within a Flutter application.
- You want a pure Dart cropping solution that supports Android, iOS, Web, and Desktop.
Skip it when
- You only need heavy-duty native image manipulation outside of the widget tree.
- You require a full-featured photo gallery and editing suite out of the box.
Strengths
- 100% pure Dart implementation with no native platform dependencies.
- Supports cropping any arbitrary widget, not just images.
- Cross-platform support including Android, iOS, Web, and Desktop.
Weaknesses
- Limited to what can be rendered within a Flutter widget tree.
- Does not include advanced built-in image filters or comprehensive editing suites.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Not documented
import 'package:crop/crop.dart';
// Put a Crop widget in the widget tree
Crop(
controller: cropController,
child: Image.asset('path/to/image.png'),
helper: Container(border: Border.all(color: Colors.white, width: 2)),
);Alternatives
Packages that do the same job and could replace crop.
Works with
Packages commonly used together with crop: ones it builds on, ones built on it, and its own family.