RepositoryDartCHSwitzerland
hm21

hm21/pro_image_editor

The pro_image_editor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.

398stars
222forks
3issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: image-editor

#1 Repository of the month

1
TINIX TRENDING·Topic: crop

#1 Repository of the month

1
TINIX TRENDING·Topic: pro-image-editor

#1 Repository of the month

Logo

pub package Sponsor License GitHub issues Web Demo

The ProImageEditor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.

Demo Website

Table of contents

Preview

Grounded-DesignFrosted-Glass-DesignWhatsApp-Design
Grounded-Design Frosted-Glass-Design WhatsApp-Design
Ai-CommandsAi-Remove-BackgroundAi-Replace-Background
Ai-Commands Ai-Remove-Background Ai-Replace-Background
Paint-EditorText-EditorCrop-Rotate-Editor
Paint-Editor Text-Editor Crop-Rotate-Editor
Filter-EditorEmoji-EditorSticker/ Widget Editor
Filter-Editor Emoji-Editor Sticker-Widget-Editor

Features

🧩 Editor Modules

  • 🎨 Paint Editor: Draw freehand with various brushes, shapes (like circles and arrows), and apply blur or pixelation for censoring.
  • 🅰️ Text Editor: Add and style text with full customization.
  • ✂️ Crop & Rotate Editor: Crop, flip, and rotate images with ease.
  • 🎛️ Tune Adjustments: Adjust brightness, contrast, saturation, and more.
  • 📸 Filter Editor: Apply custom or predefined image filters.
  • 💧 Blur Editor: Add blur to any part of the image.
  • 😀 Emoji Picker: Quickly insert emojis into your design.
  • 🖼️ Sticker Editor: Add and manage custom image stickers.

🚀 Performance & Architecture

  • 🧵 Multi-Threading
    • Use isolates for background tasks on native platforms.
    • Use web workers for background tasks in web environments.
    • Auto- or manually configure the number of active background processors based on device capabilities.

🛠️ Core Features

  • 🖼️ Flexible Image Input: Load images from memory, assets, files, or network.
  • 🌍 i18n Support: Translate every string in the UI.
  • 🎚️ Per-Editor Configuration: Each module offers extensive customization options.
  • 🧱 Fully Customizable: Swap icons, styles, and widgets for any subeditor.
  • 📐 Helper Lines: Snap and align objects more accurately.
  • ↩️ Undo/Redo support for non-destructive editing.
  • 🔁 Movable Background Image: Position the base image as needed.
  • 🔀 Reorder Layers: Change layer stacking order dynamically.
  • 🎯 Interactive Layers: Select and manipulate each element with precision.
  • 🖌️ Hit Detection: Paint layers support interactive selection.
  • 🔍 Zoom Support: Zoom in/out in both paint and main editor views.
  • 🖱️ Enhanced Desktop UX: Fine-tuned movement and scaling on desktop platforms.
  • 🧲 Multiselect Support: Select multiple elements at once.

🎨 Themes

  • 🪵 Grounded Theme
  • 🧊 Frosted Glass Theme
  • 💬 WhatsApp Theme

🔗 Integration

  • 🤖 AI Assistant: Integrate ChatGPT, Gemini, or other AI models to assist with image editing via smart suggestions or direct commands.
  • 🎥 Video Editor: Seamlessly combine image and video editing workflows.

Setup

Web

Show web setup

If you're displaying emoji on the web and want them to be colored by default (especially if you're not using a custom font like Noto Emoji), you can achieve this by adding the useColorEmoji: true parameter to your flutter_bootstrap.js file, as shown in the code snippet below:

{{flutter_js}}
{{flutter_build_config}}

_flutter.loader.load({
    serviceWorkerSettings: {
        serviceWorkerVersion: {{flutter_service_worker_version}},
    },
    onEntrypointLoaded: function (engineInitializer) {
      engineInitializer.initializeEngine({
        useColorEmoji: true, // add this parameter
        renderer: 'canvaskit'
      }).then(function (appRunner) {
        appRunner.runApp();
      });
    }
});

You can view the full web example here.

Android, iOS, macOS, Linux, Windows

No additional setup required.


Usage

import 'package:pro_image_editor/pro_image_editor.dart';

@override
Widget build(BuildContext context) {
  return ProImageEditor.network(
    'https://picsum.photos/id/237/2000',
    callbacks: ProImageEditorCallbacks(
      onImageEditingComplete: (Uint8List bytes) async {
        /*
          Your code to process the edited image, such as uploading it to your server.

          You can choose to use await to keep the loading dialog visible until 
          your code completes, or run it without async to close the loading dialog immediately.

          By default, the image bytes are in JPG format.
        */
        Navigator.pop(context);
      },
        /* 
        Optional: If you want haptic feedback when a line is hit, similar to WhatsApp, 
        you can use the code below along with the vibration package.

          mainEditorCallbacks: MainEditorCallbacks(
            helperLines: HelperLinesCallbacks(
              onLineHit: () {
                Vibration.vibrate(duration: 3);
              }
            ),
          ),
        */
    ),
  );
}

Designs

The editor offers three prebuilt designs:

Extended-Configurations

The editor provides extensive customization options, allowing you to modify text, icons, colors, and widgets to fit your needs. It also includes numerous callbacks for full control over its functionality.

Check out the web demo to explore all possibilities. You can find the example code for all demos here.

Video-Editor

The editor supports full video generation on Android, iOS, and macOS. Support for Windows and Linux is coming soon.

To keep the image editor lightweight, you’ll need to manually add the video player package of your choice. For rendering the video, you can use my package pro_video_editor, which is also used in the example.

An example of how to implement the video editor with a specific video player can be found here, and a simpler example using just the default video_player is available here.

Sponsors

Included Packages

A big thanks to the authors of these amazing packages.

Contributors

Made with contrib.rocks.

Similar Projects

Discover other similar projects and AI models.

RepositorySwift
congnd/FMPhotoPicker

A modern, simple and zero-dependency photo picker with an elegant and customizable image editor

852
Jun 27, 2023
RepositorySwift
longitachi/ZLImageEditor

A powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, image stickers, filters.

635
Oct 19, 2026
RepositoryTypeScript
jimp-dev/jimp

Image processing in pure JavaScript for Node.js and the browser, with zero native dependencies.

14.7k
Nov 30, 2026
RepositoryJava
Yalantis/uCrop

Image Cropping Library for Android

12.1k
Aug 7, 2025
RepositoryJavaScript
1j01/jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras

7.9k
Jul 19, 2026
RepositoryObjective-C
ivpusic/react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping

6.3k
Nov 13, 2026
RepositoryObjective-C
TimOliver/TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects

4.9k
Nov 8, 2026
RepositoryC#
PintaProject/Pinta

Simple GTK Paint Program

4.2k
Nov 23, 2026
RepositoryC++
pixpark/gpupixel

Real-time image filter engine based on GPU

2.5k
Sep 26, 2026