sketch_widget 1.2.2 copy "sketch_widget: ^1.2.2" to clipboard
sketch_widget: ^1.2.2 copied to clipboard

Flutter widget to sketch widgets, transform their position, scale and rotation.

sketch_widget #

Build pub package style: very good analysis

Flutter widget to sketch widgets

Features #

  • Translate
  • Scale
  • Rotate
  • Visibility
  • Lock

Getting started #

dependencies:
  sketch_widget: ^1.2.1

Usage #

SketchWidget(
    sketch: {
        2: {
            Component.position: const Rect.fromLTWH(100, 100, 100, 100),
            Component.widget: const ColoredBox(color: Colors.red),
            Component.angle: pi / 2,
        },
        1: {
            Component.position: const Rect.fromLTWH(150, 150, 200, 200),
            Component.widget: Image.asset('images/ending_dash.png'),
            Component.angle: pi / 4,
        },
        3: {
            Component.position: const Rect.fromLTWH(200, 200, 50, 50),
            Component.widget: const ColoredBox(color: Colors.blue),
            Component.lock: true,
        },
        4: {
            Component.position: const Rect.fromLTWH(250, 250, 50, 50),
            Component.widget: const ColoredBox(color: Colors.yellow),
            Component.visibility: false,
        },
    },
);

Additional information #

Feel free to give feedback.

0
likes
150
pub points
0%
popularity

Publisher

verified publisherdemen.org

Flutter widget to sketch widgets, transform their position, scale and rotation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, vector_math

More

Packages that depend on sketch_widget