image_cropper 0.0.1 copy "image_cropper: ^0.0.1" to clipboard
image_cropper: ^0.0.1 copied to clipboard

outdatedDart 1 only

A Flutter plugin supports cropping images

Image Cropper #

A Flutter plugin supports cropping images

Installation #

Android #

  • Add UCropActivity into your AndroidManifest.xml
<activity
    android:name="com.yalantis.ucrop.UCropActivity"
    android:screenOrientation="portrait"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>

Example #

Future<Null> _cropImage(File imageFile) async {
    File croppedFile = await ImageCropper.cropImage(
      sourcePath: imageFile.path,
      ratioX: 1.0,
      ratioY: 1.0,
      maxWidth: 512,
      maxHeight: 512,
    );
}

Credits #

This plugin is based on two native libraries:

2024
likes
0
pub points
99%
popularity

Publisher

verified publisherhunghd.dev

A Flutter plugin supports cropping images

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on image_cropper