Skip to content
pubscout

native_image_cropper

0.8.0, released 6 months ago by cosee.biz

A Flutter plugin for native rectangular and circular image cropping.

WASM-ready
$ flutter pub add native_image_cropper
Source repository

What it does

A Flutter plugin that provides native performance for rectangular and circular cropping using Kotlin and Swift. It includes a CropPreview widget with customizable drag points, masks, and a controller to retrieve crop sizes and execute crops.

AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need high-performance image cropping backed by native code.
  • You want support for both rectangular and circular cropping out of the box.

Skip it when

  • You are on the web platform and require JPEG support or a crop mask without background color workaround.
  • You need complex image manipulation features beyond cropping.

Strengths

  • Better performance due to native Kotlin/Swift implementations.
  • Usable both as a widget or directly via methods.
  • Highly customizable drag points and crop masks.

Weaknesses

  • Web platform currently only supports cropping to PNG format and has issues rendering the crop mask properly.
  • Web platform isolates are not supported, which may cause UI freezing for large images.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
5
Scaffold(
  body: CropPreview(
  bytes: imageData,
  ),
);

Alternatives

Packages that do the same job and could replace native_image_cropper.

  • image

    If you need pure Dart image processing and manipulation without native platform dependencies.

  • image_picker

    If you primarily need to pick images from the device gallery or camera rather than exclusively crop them.