gopaldhola99 / sticker_view

A Flutter plugin to rotate, resize, move, delete text, photo or any other widget.
MIT License
26 stars 17 forks source link

sticker_view

A Flutter plugin to rotate, resize, move, delete any text, image or any other widget.


Available Features

✅   Rotate
✅   Resize
✅   Move
✅   Layer Update (Change Stack position)
✅   Delete

:rocket: Installation

This plugin is available on Pub: https://pub.dev/packages/sticker_view

Add this to dependencies in your app's pubspec.yaml

sticker_view : latest_version

:bookmark: Usage

Sample code to integrate can be found in example/lib/main.dart.

Integrate sticker_view

 StickerView(
            // List of Stickers
            stickerList: [
              Sticker(
                // You can give any widget as it's child
                child: Image.network(
                    "https://tinyurl.com/48ne4wj5"),
                // Must have unique id for every Sticker
                id: "uniqueId_111",
              ),
              Sticker(
                child: const Text("Hello"),
                id: "uniqueId_222",
                isText: true,
              ),
            ],
          ),

Save StickerView as Uint8List

  // Give the Image Quality (High, Medium, Low)
  await StickerView.saveAsUint8List(ImageQuality.high);

: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.

=======

Contributions are welcome! Feel free to submit a pull request or open an issue for any feature requests or bugs, Create a Ticket.