stickereditor 0.0.8 copy "stickereditor: ^0.0.8" to clipboard
stickereditor: ^0.0.8 copied to clipboard

A widget that lets you modify and move your text and image according to your boundaries.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:stickereditor_example/view.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
        debugShowCheckedModeBanner: false, home: HomePage());
  }
}

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

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('StickerEditor Demo'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
                onPressed: () {
                  Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) =>
                              const StickerEditingViewScreen()));
                },
                child: const Text('StickerEditingViewScreen')),
            const SizedBox(height: 10),
            ElevatedButton(
                onPressed: () {
                  Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) => const TextEditingBoxScreen()));
                },
                child: const Text('TextEditingBox')),
            const SizedBox(height: 10),
            ElevatedButton(
                onPressed: () {
                  Navigator.push(
                      context,
                      MaterialPageRoute(
                          builder: (context) =>
                              const StickerEditingBoxScreen()));
                },
                child: const Text('StickerEditingBox'))
          ],
        ),
      ),
    );
  }
}
57
likes
80
pub points
76%
popularity

Publisher

unverified uploader

A widget that lets you modify and move your text and image according to your boundaries.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dotted_border, flutter, flutter_web_plugins, get, path_provider, screenshot

More

Packages that depend on stickereditor