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

sticker_view 封面
插件详情v0.0.4

sticker_view

一个 Flutter 插件,用于旋转、调整大小、移动、删除任何文本、照片或其他小部件。

AndroidiOS
近 30 天下载
87
喜欢数
76
Pub 分数
130

安装插件

flutter pub add sticker_view

插件介绍

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

StickerView 是一个 Flutter 插件,可实现对容器内文本、图像和自定义 UI 元素等小部件的交互式操作。用户可以通过直观的手势旋转、调整大小、移动和删除这些元素。专为多媒体编辑设计,支持动态内容叠加,非常适合用于创建照片编辑器或社交媒体工具中的贴纸。该插件在 Android 和 iOS 平台上均可无缝运行。

适合场景

  • 照片编辑应用
  • 社交媒体贴纸制作
  • 互动式数字白板
  • 可自定义的图像叠加
  • 用户生成内容工具

主要特点

  • 基于手势的旋转和缩放
  • 拖放小部件定位
  • 小部件的删除功能
  • 支持任何 Flutter 小部件作为贴纸
  • 跨平台兼容性(Android 和 iOS)

适合对象

  • 开发多媒体编辑器的开发者
  • 需要交互式叠加层的应用程序
  • 带有用户绘制或添加内容的创意工具
  • 教育或协作白板应用程序
  • 需要动态UI元素操作的项目

使用建议

  • 需要仔细处理小部件生命周期
  • 性能可能因复杂的或大量的贴纸而有所不同
  • 仅限基本手势交互
  • 没有内置的导出或保存功能
  • 可能需要额外的逻辑来实现持久化数据存储

原始 README

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

sticker_view

A Flutter plugin to rotate, resize, move, delete any text, image or any other widget.


Available Features

✅   Rotate
✅   Resize
✅   Move
✅   Layer Update (Change Stack position)
✅   Delete

:rocket: Installation

This plugin is available on Pub: https://pub.dev/packages/sticker_view

Add this to dependencies in your app's pubspec.yaml

sticker_view : latest_version

:bookmark: Usage

Sample code to integrate can be found in example/lib/main.dart.

Integrate sticker_view
 StickerView(
            // List of Stickers
            stickerList: [
              Sticker(
                // You can give any widget as it's child
                child: Image.network(
                    "https://tinyurl.com/48ne4wj5"),
                // Must have unique id for every Sticker
                id: "uniqueId_111",
              ),
              Sticker(
                child: const Text("Hello"),
                id: "uniqueId_222",
                isText: true,
              ),
            ],
          ),
Save StickerView as Uint8List
  // Give the Image Quality (High, Medium, Low)
  await StickerView.saveAsUint8List(ImageQuality.high);

:heart: Found this project useful?

If you found this project useful, then please consider giving it a :star: on Github and sharing it with your friends via social media.

=======

Contributions are welcome! Feel free to submit a pull request or open an issue for any feature requests or bugs, Create a Ticket.

所属分类

依赖

依赖清单 1 项

  • plugin_platform_interface^2.0.2

源码仓库

使用此插件的项目

暂无相关数据。