lindi_sticker_widget 0.1.1
lindi_sticker_widget: ^0.1.1 copied to clipboard
Lindi Sticker Widget is a flutter plugin to flip, rotate, resize, move, delete any widgets.
lindi_sticker_widget #
Features #
Rotate
Resize
Move
Layer Update (Change Stack position)
Delete
Flip
Lock
Getting started #
This plugin is available on Pub: https://pub.dev/packages/lindi_sticker_widget
Add this to dependencies in your app's pubspec.yaml
lindi_sticker_widget : latest_version
Usage #
Sample code to integrate can be found in example/lib/main.dart.
LindiController
LindiController controller = LindiController();
Custom LindiController
LindiController controller = LindiController(
borderColor: Colors.white,
iconColor: Colors.black,
showDone: true,
showClose: true,
showFlip: true,
showStack: true,
showLock: true,
showAllBorders: true,
shouldScale: true,
shouldRotate: true,
shouldMove: true,
minScale: 0.5,
maxScale: 4,
);
Integrate LindiStickerWidget
LindiStickerWidget(
controller: controller,
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: Image.network('https://picsum.photos/200/300', fit: BoxFit.cover)
),
)
Add Widget to LindiStickerWidget
controller.addWidget(
Text('Hello World')
);
Save LindiStickerWidget as Uint8List
Uint8List? image = await controller.saveAsUint8List();
Screenshot #
[Demo]
❤️ Found this project useful? #
If you found this project useful, then please consider giving it a ⭐ on Github and sharing it with your friends via social media.