whatsapp_story_editor
一個 Flutter 套件,用於新增類似 WhatsApp 的故事編輯功能。
- 星標
- 6
- 分支
- 14
- 最近推送(UTC)
- 2024年3月1日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter package to add story editing features similar to Whatsapp. Make Stories like whatsapp and add texts, stickers, painting on your photo along with basic features like crop, rotation, and also add captions to it.
How to Use
To use whatsapp_story_editor, follow the following steps:
Step1: Adding plugin dependency
add the plugin to your pubspec.yaml file:
whatsapp_story_editor: [latest_version]
Step2: Importing the package.
import the plugin in [your_file].dart
import 'package:whatsapp_story_editor/whatsapp_story_editor.dart';
Step3: Navigate to Whatsapp Story Editor Page
Navigate to WhatsappStortEditor Page on button click, you can find a whatsapp Camera button in the example file for reference. It will land you to the camera page which allows you to capture or select the photo from gallery upon your conscent.
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const WhatsappStoryEditor()),
);
this returns an Object containing the edited photo and caption as Future as:
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const WhatsappStoryEditor()),
).then((whatsappStoryEditorResult) {
if (whatsappStoryEditorResult != null) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SavedImageView(
image: whatsappStoryEditorResult.image,
caption: whatsappStoryEditorResult.caption,
)),
);
}
});
);
Note that the whatsappStoryEditorResult could be null if the user dosnt makes any edit on the photo and leaves. SavedImageView is the page where you could show the edited photo and caption. You may change as you need it to be.
Example
Please refer to the example file for detailed usage and example here
Example Images:













Created by Javeria Iffat
Future Work
For now, only one image editing capability is being handled by Whatsapp Story Editor in this version.
FAQ
In case you need: to add new feature or you get any error or any help, please contact me at javeriaiffat312@gmail.com or javeria.iffat@lums.edu.pk please be kind if you get any errors, text me I'll be more than happy to help you all.
THANK YOU!
使用的依賴
依賴清單 14 項
- flutter
{"sdk":"flutter"} - whatsapp_camera
^1.0.0 - photofilters
^3.0.1 - perfect_freehand
^1.0.4 - image_crop_plus_updated
^0.7.1 - hsv_color_pickers
^0.2.2 - get
^4.6.1 - path_provider
^2.0.12 - flutter_svg
^2.0.4 - dotted_border
^2.0.0+2 - image_cropper
^4.0.1 - image_picker
^0.8.7+5 - flutter_test開發依賴
{"sdk":"flutter"} - flutter_lints開發依賴
^2.0.0
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
