FLUTTER ECOSYSTEM

JaveriaJR/whatsapp_story_editor

WhatsApp와 유사한 스토리 편집 기능을 추가하기 위한 Flutter 패키지입니다.

whatsapp_story_editor 프로젝트 이미지
Stars
6
Forks
14
최근 푸시(UTC)
2024. 3. 1.
프로젝트 상태
활성
JaveriaJR GitHub avatar
GITHUB User

JaveriaJR ↗

언어DartC++CMakeHTMLCSwiftKotlinObjective-C

사용 중인 의존성

의존성 목록 14 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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:

https://imgur.com/wNx4dfd.png https://imgur.com/tZRqrAm.png https://imgur.com/cTdIMd6.png https://imgur.com/3cynFSd.png https://imgur.com/yHXWekp.png https://imgur.com/lgExybA.png https://imgur.com/nJj8bdU.png https://imgur.com/g1cshOZ.png https://imgur.com/iGUJrJO.png https://imgur.com/9RhJZZO.png https://imgur.com/VsaTpIF.png https://imgur.com/PHTO5IB.png https://imgur.com/i6RBM88.png https://imgur.com/u660duD.png

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!