搜索插件、代码仓与 APP 分类

image_editor_dove 封面
插件详情v0.0.3

image_editor_dove

一个带有裁剪、涂鸦、马赛克、添加文字、翻转和旋转功能的图像编辑器。

AndroidiOS
近 30 天下载
24
喜欢数
36
Pub 分数
130

安装插件

flutter pub add image_editor_dove

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个用于编辑图像的 Flutter 包,提供裁剪、涂鸦、应用马赛克、添加文字、翻转和旋转等基本工具。专为希望直接在其应用程序中集成基础但功能强大的图像编辑功能的开发者设计。支持 Android 和 iOS 平台,提供简单直观的 API 来完成常见的编辑任务。该包是开源的,托管在 GitHub 上,支持社区贡献并确保透明度。非常适合需要在应用内进行照片自定义而无需依赖外部服务的应用。

适合场景

  • 应用内照片编辑
  • 社交媒体应用功能
  • 用户资料图片自定义
  • 照片分享应用
  • 内容创作工具

主要特点

  • 裁剪图片
  • 使用涂鸦工具绘制
  • 应用马赛克效果
  • 添加自定义文本
  • 翻转和旋转图像
  • 跨平台支持

适合对象

  • 移动应用开发者
  • 社交媒体平台
  • 照片编辑工具
  • 用户生成内容应用
  • 需要轻量级图像编辑的应用程序

使用建议

  • 仅限基本编辑功能
  • 无高级过滤器或效果
  • 需要手动处理图像保存
  • 依赖外部压缩依赖项
  • 未针对高分辨率图像进行优化

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

image_editor_dove

A high-performance image editor with crop, scribble, mosaic, add-text, flip, rotated functions.

Support custom ui style.

  • drawing

draw.gif

  • rotate

flip&rotate.gif

  • mosaic

mosaic.gif

  • add or delete text

text_delete.gif

addtext_done.gif

Getting Started

First, add image_editor: as a dependency in your pubspec.yaml file.

import

import 'package:image_editor/flutter_image_editor.dart';

iOS Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:

  • NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
  • NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
  • NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor. Or in text format add the key:
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSCameraUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSMicrophoneUsageDescription</key>
<string>Used to capture audio for image picker plugin</string>

Android

No configuration required - the plugin should work out of the box.

Usage

pick an image that wanna edit, and pass it to image editor like this:

  Future<void> toImageEditor(File origin) async {
    return Navigator.push(context, MaterialPageRoute(builder: (context) {
      return ImageEditor(
        originImage: origin,
        //this is nullable, you can custom new file's save postion
        savePath: customDirectory
      );
    })).then((result) {
      if (result is EditorImageResult) {
        setState(() {
          _image = result.newFile;
        });
      }
    }).catchError((er) {
      debugPrint(er);
    });
  }

custom ui style

You can extends ImageEditorDelegate and custom editor's widget:

ImageEditor.uiDelegate = YouUiDelegate();

class YouUiDelegate extends ImageEditorDelegate{
    ...
}

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。