dynamic_image_crop

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

dynamic image crop

dynamic_image_crop #







A Flutter package to crop images into various shapes.
Introduction #

You can test the package by this link: demo_link
Features #
dynamic_image_crop supports the following features:

Crop an image into user drawing shapes.
Crop an image into rectangle, circle, triangle shapes.
Change the color of the crop shape line.
Change the width of the crop shape line.

Usage #
import 'package:dynamic_image_crop/dynamic_image_crop.dart';

final controller = CropController();

DynamicImageCrop(
controller: controller,
image: image!, // Uint8List
onResult: (image, width, height) {
// cropped Image (Uint8List), width and height
},
cropLineColor: Colors.red, // (Optional)
cropLineWidth: 1.0, // (Optional)
)

DynamicImageCrop.fromFile(
imageFile: file, // File
controller: controller,
onResult: (image, width, height) {
// cropped Image (Uint8List), width and height
},
)
copied to clipboard
CropController has the following methods:
void cropImage() {}
void changeType(CropType type) {}
void changeImage(Uint8List image) {}
void clearCropArea() {}
copied to clipboard
CropType has the following types:
enum CropType {
rectangle, circle, triangle, drawing, none
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.