flutter_crop_image 0.2.0
flutter_crop_image: ^0.2.0 copied to clipboard
A production-ready, highly extensible Flutter image cropper package with headless engine support, customizable overlays, themes, gestures, shapes, and GPU-accelerated export.
0.2.0 #
- Added Automatic Document & ID Card Detection (
CropAutoDetector,NativeDocumentDetector). - Pure-Dart hardware luminance gradient edge detector with zero external C++/ML dependencies.
- Added
CropperConfiguration.idCardandCropperConfiguration.documentScannerpresets. - Added standard document aspect ratios:
CropAspectRatio.idCard(ISO/IEC 7810 ID-1 standard ~1.586 for Aadhar/PAN cards),CropAspectRatio.a4(~1.414), andCropAspectRatio.passport(~0.778). - Added
CropController.autoDetectDocument()andCropController.autoDetectAndSnap()with smooth easing animations. - Added Auto-Detect document button to
DefaultCropperControlstoolbar with scrollable overflow prevention. - Added simulated Aadhar card test and demo tile to the example application.
0.1.0 #
- Initial release of
flutter_crop_image. - Pure Dart/Flutter crop engine decoupled from UI frameworks and state-management libraries.
- Core headless
FlutterCropImage(AdvancedCropper) widget and turnkeyFlutterCropImageView(AdvancedCropperView) screen. - Hardware-accelerated GPU image cropping via
NativeUiCropProcessoranddart:ui. - Geometric crop shapes:
rectangle,circle,oval, androundedRectangle. - Standard and custom aspect ratios (
free,1:1,4:3,16:9,9:16,3:2,custom). - Interactive corner resize handles with smooth aspect constraints.
- Composition grid system with Rule of Thirds, Golden Ratio, Crosshair, and custom $M \times N$ divisions.
- Full touch gesture handling: 1-finger pan, 2-finger pinch zoom, double-tap zoom, and rotation.
- Full programmatic control through
CropController(zoom, rotation, flip H/V, move, reset, fit, crop). CropperThemesystem withdark,light,cupertinoDark, andnordpresets.- Memory management and dimensions clamping for high-resolution 4K/8K images.
- Complete example application and automated test suite.