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')
);
Get index of selected widget
controller.selectedIndex.stream.listen((int index) {
print(index);
});
Update widget
controller.widgets[index].updateWidget(const Text('Hello'));
Save LindiStickerWidget as Uint8List
Uint8List? image = await controller.saveAsUint8List();
Screenshot

:heart: Found this project useful?
If you found this project useful, then please consider giving it a :star: on Github and sharing it with your friends via social media.