Last updated:
0 purchases
flutter customizable image croppper
Flutter Customizable Image Croppper #
Why You Use This Package ? #
The shape of the cropper widget is not fixed, instead you can make it any way you want.
This allows you to crop the image wherever you want, however you want.
Features #
It helps you crop the picture as you want.
Multi image type support.
Usage #
First create a sample the CropController.
CropController cropController = CropController(
imageType: ImageType.url,
image: "https://picsum.photos/id/234/200/200",
);
copied to clipboard
Second set the created sample controller in the 'CustomizableImageCropper' widget properties.
CustomizableImageCropper(controller: cropController),
copied to clipboard
After this steps, call 'crop()' method the cropController's in the your wanna click or tap event method.
ElevatedButton(
child: Text("Save"),
onPressed: () async {
await cropController.crop();
},
),
copied to clipboard
Finally find the croped image in the 'cropedImageFile' properties in the cropController's
ElevatedButton(
child: Text("Save"),
onPressed: () async {
await cropController.crop();
print(cropController.cropedImageFile);
},
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.