custom_image_cutter 1.0.1 copy "custom_image_cutter: ^1.0.1" to clipboard
custom_image_cutter: ^1.0.1 copied to clipboard

CustomImageCutter is a powerful and versatile package designed to simplify the process of customizing image crops in an intuitive way.

CustomImageCutter is a simple and versatile package designed to simplify the process of customizing image crops in an intuitive way.

Features #

Scale and adjust image to crop

Getting started #

Usage #

You will fina a simple example on example folder.

Start creating a controller:

final controller = CustomImageCutterController();

And a globalkey:

final cropImage = GlobalKey();

And use it on:

CustomImageCutter(
controller: controller,
cropperKey: cropImage,
imagePath:'you_image_path',
maxScale:5.0 // its optional, by default is 5.0
image: Image.network('you_image_path'),
)

To scale the image: controller.updateScale(value) //value is a double

You can use a slider to control the scale:

Slider(
min: 1,
max: controller.maxScale, //the controller hold the max scale
value: controller.scale, //the contoller expose the actual scale
onChanged: (value) =>setState(() => controller.updateScale(value)))),

To get the cropped image:

final cropped = await controller.crop(cropperKey: cropImage);
4
likes
0
pub points
67%
popularity

Publisher

unverified uploader

CustomImageCutter is a powerful and versatile package designed to simplify the process of customizing image crops in an intuitive way.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on custom_image_cutter