Search categories, packages and repositories

Package detailsv0.0.9

dynamic_image_crop

A Flutter Package that crops the image by drawing lines or cropping into various shapes.

AndroidiOSmacOSWindowsLinux
30-day downloads
77
Likes
30
Pub points
150

Install package

flutter pub add dynamic_image_crop

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Dynamic Image Crop is a Flutter package that enables users to crop images by drawing custom lines or selecting various shapes. It provides an interactive interface for precise image cropping, supporting dynamic adjustments in real time. Ideal for apps requiring flexible image editing, it works across multiple platforms including Android, iOS, macOS, Windows, and Linux. The package is designed for developers seeking intuitive, customizable cropping functionality without complex setup.

Use cases

  • Interactive image editing
  • Custom shape cropping
  • Real-time crop adjustments
  • Photo editing apps
  • User-generated content tools
  • Social media image processing

Key features

  • Draw custom crop boundaries
  • Support for multiple shapes
  • Real-time preview
  • Cross-platform compatibility
  • Simple integration with Flutter
  • Configurable crop constraints

Suitable for

  • Developers building photo editors
  • Apps needing user-defined image crops
  • Creative tools with visual editing
  • Mobile and desktop image processing apps
  • Educational or design-focused applications

Considerations

  • Requires user input for crop definition
  • May impact performance with large images
  • Limited to basic cropping logic
  • No built-in image filters or enhancements
  • Depends on accurate touch/drag gestures
  • Not optimized for batch processing

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

dynamic_image_crop

Pub Flutter Demo License: MIT


A Flutter package to crop images into various shapes.

Introduction

demo

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
  },
)

CropController has the following methods:

void cropImage() {}
void changeType(CropType type) {}
void changeImage(Uint8List image) {}
void clearCropArea() {}

CropType has the following types:

enum CropType {
  rectangle, circle, triangle, drawing, none
}

Categories

Source repository

Projects using this package

No data available yet.