v0.0.8stickereditor
一個可讓你根據邊界修改和移動文字與影像的組件。
一個 Flutter 套件,可協助您建立可在螢幕上拖曳與縮放的貼紙小工具。
{"sdk":"flutter"}{"sdk":"flutter"}^4.3.8^2.0.0+1^1.2.3^2.0.5{"sdk":"flutter"}^1.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
A flutter plugin for iOS, Android and Mac for Rotate, Scaling, Moving and Editing Text, Photo, Stickers
https://github.com/Harsh-Radadiya/sticker_editor/raw/master/assets/readme/demo.gif
| Sticker Editor | |
|---|---|
| https://github.com/Harsh-Radadiya/sticker_editor/raw/master/assets/readme/text_editor_box.png | https://github.com/Harsh-Radadiya/sticker_editor/raw/master/assets/readme/sticker_editor_box.png |
| Only Text | Only Photo |
|---|---|
| https://github.com/Harsh-Radadiya/sticker_editor/raw/master/assets/readme/only_text.png | https://github.com/Harsh-Radadiya/sticker_editor/raw/master/assets/readme/only_picture.png |
A flutter package Sticker Editor which will help you to create editable and scalable text or sticker widget that can be dragged around the area you given in screen.
First, add stickereditor as a dependency in your pubspec.yaml file.
Fore NetworkImage, macOS needs you to request a specific entitlement in order to access the network. To do that open macos/Runner/DebugProfile.entitlements and add the following key-value pair.
<key>com.apple.security.network.client</key>
<true/>
StickerEditingView(
isnetwork: false,
height: 300,
width: 300,
imgUrl: backgroundImageUrl,
fonts: fonts,
palletColor: colorPallet,
assetList: stickerList,
),
Container(
height: 300,
width: 300,
color: Colors.blue,
child: Stack(
children: [
TextEditingBox(
fonts: fonts,
boundHeight: 200,
boundWidth: 100,
isSelected: true,
palletColor: colorPallet,
newText: TextModel(
name: 'Text EditingBox',
textStyle:
GoogleFonts.pacifico(fontSize: 25, color: Colwhite),
top: top,
isSelected: true,
textAlign: TextAlign.center,
scale: 1,
left: left),
),
],
),
),
Container(
height: 300,
width: 300,
color: Colors.blue,
child: Stack(
children: [
StickerEditingBox(
boundHeight: 200,
boundWidth: 200,
pictureModel: PictureModel(
isNetwork: true,
isSelected: false,
left: 50,
top: 50,
scale: 1,
stringUrl:
'https://raw.githubusercontent.com/Harsh-Radadiya/sticker_editor/master/assets/t-shirt.jpeg',
)),
],
),
)
Run the example app in the exmaple folder to find out more about how to use it.