搜尋套件、儲存庫與 APP 分類

flutter_story_editor 封面
套件詳情v0.0.2

flutter_story_editor

此套件使用 WhatsApp 故事圖片/影片編輯器風格,您可編輯圖片與影片。可加入文字、貼紙、手指繪圖、套用濾鏡,以及撤銷動作。

AndroidiOS
近 30 天下載
35
喜歡數
47
Pub 分數
130

安裝套件

flutter pub add flutter_story_editor

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個受到 WhatsApp 故事編輯器啟發的 Flutter 套件,讓使用者能以直覺化的工具編輯圖片與影片。支援加入文字、貼紙、手指繪圖、套用濾鏡,以及復原動作。專為應用程式內的無縫多媒體編輯而設計,可在 Android 與 iOS 上順暢整合。此套件簡化了透過豐富媒體增強功能創造引人入勝故事的過程。

適用情境

  • 建立社群媒體故事
  • 編輯使用者產生的內容
  • 使用故事功能建構訊息應用
  • 向圖片和影片添加創意疊加
  • 啟用即時繪圖和註釋

主要特色

  • 文字疊加支援
  • 貼紙新增
  • 手指繪圖工具
  • 過濾應用
  • 撤銷功能
  • 跨平台相容性

適合對象

  • 社交網絡應用
  • 訊息平台
  • 內容創作工具
  • 移動故事應用
  • 創意照片和影片編輯器

使用建議

  • 需要媒體訪問權限
  • 效能可能會因大型影片檔案而異
  • 貼紙資源的自訂選項有限
  • 取決於底層平台的渲染
  • 可能需要對匯出格式進行額外處理

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_story_editor Pub

This package is created using style of the WhatsApp story image/video editor, with which you can edit images and videos both together. You can add texts, stickers, freehand finger drawing, apply filter, and undo. The edited images will be returned in a onSave call back as List of Files. You can then upload it to some storage or save it locally to your gallery.

Video editing for now only support trimming. In future more video editing features will be added.

Features

✅ You can edit Images, and videos both together.

✅ Draggable fancy text with (custom colors, font families, and resize)

✅ Draggable stickers & emojis

✅ Apply filters to images

✅ Freehand drawing over images

✅ Trimming video frames

Future features

🚀 Drawing painting over video frames (requires platform specific work)

🚀 More image and video editing functionality like (WhatsApp & Instagram) stories

🚀 The UI is currently like WhatsApp, but I think we should go with something unique for flutter (your contribution & ideas will be very invaluable)

🚀 improve and enhance performance and existing features.

Package Demo

Installation

Add flutter_story_editor: latest_version to your pubspec.yaml and then import it.

dartimport 'package:stories_editor/stories_editor.dart';

Android

add the following code to your AndroidMAnifest.xml file

<activity
 android:name="com.yalantis.ucrop.UCropActivity"
 android:screenOrientation="portrait"
 android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
iOS

add the following code to your info.plist file

<key>NSCameraUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSMicrophoneUsageDescription</key>
<string>Used to capture audio for image picker plugin</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>

How to use

  // Inialize controllers within the state
  FlutterStoryEditorController controller = FlutterStoryEditorController();
  final TextEditingController _captionController = TextEditingController();
  
  // TODO: create a method to pick files (videos and images) either separate or together.


    // Select files 
    selectMedia().then((value) {
                  if (_selectedMedia != null && _selectedMedia!.isNotEmpty) {
                    showModalBottomSheet(
                      isScrollControlled: true,
                      isDismissible: false,
                      enableDrag: false,
                      context: context,
                      builder: (context) {

                        return FlutterStoryEditor(
                            controller: controller,
                            captionController: _captionController,
                            selectedFiles: _selectedMedia,
                            onSaveClickListener: (files) {
                              // Here you go with your edited files.
                            }
                        );
                      },
                    );
                  }
                },
              );
            }, icon: const Icon(Icons.upload, size: 50,)),
          ),

For more information : visit example project inside example/example.dart.

Screenshots

Initial view & Multiple images selected

Images & videos together & Apply filters

Crop, scale and rotate & Add draggable stickers

Add emojis & Add draggable fancy text

Draw freehand painting over images

Must read

The initial release of flutter_story_editor may have small bugs, and issues. If you found some, and you're willing to contribute feel free to create issue and rasie a PR. Make sure you inform me through my LinkedIn DM for the issues you create in both cases either or not if you want to contribute.

This package will be improved more along the time, your contribution will be very invaluable.

Created & Maintained By

@MuhammadAdnan, LinkedIn : @MuhammadAdnan , Instagram : @MuhammadAdnan.

YouTube : @eTechViral

所屬分類

依賴

原始碼儲存庫

使用此套件的專案

暫無相關資料。