image_stickers 0.0.1 copy "image_stickers: ^0.0.1" to clipboard
image_stickers: ^0.0.1 copied to clipboard

outdated

Plugin to apply image stickers to the background image. Drag, resize, rotate stickers.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:image_stickers/image_stickers.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ImageStickers(
        backgroundImage: const AssetImage("assets/weapon.png"),
        stickerList: [
          UISticker(
              imageProvider: const AssetImage("assets/sticker.png"),
              x: 100,
              y: 100,
              editable: true)
        ],
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
16
likes
0
points
62
downloads

Publisher

verified publisherkoallider.me

Weekly Downloads

Plugin to apply image stickers to the background image. Drag, resize, rotate stickers.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, image

More

Packages that depend on image_stickers