magic_canvas 0.0.2 copy "magic_canvas: ^0.0.2" to clipboard
magic_canvas: ^0.0.2 copied to clipboard

Flutter package supports drawing canvas shapes such as squares, circles, lines,...

Flutter package support draw canvas shapes

pub package

Support shapes #

  1. Rectangle
  2. Circle
  3. Line
  4. Arrow
  5. Chat bubble
  6. Custom shape by extend AbstractShape

Getting started #

To use this plugin, add magic_canvas as a dependency in your pubspec.yaml file.

Usage #

Here is a simple example, see more detail at /example

Board(
    children: [
        RectangleShape(
            borderColor: Colors.red,
            location: const Offset(5, 5),
            size: const Size(30, 50),
            color: Colors.orange,
        ),
        CircleShape(
            borderColor: Colors.red,
            location: const Offset(50, 5),
            size: const Size(30, 50),
            color: Colors.orange,
            text: 'Hello'
        ),
        color: Colors.grey,
        size: const Size(1280, 720),
    ],
)
4
likes
140
pub points
2%
popularity

Publisher

verified publishermag1c.dev

Flutter package supports drawing canvas shapes such as squares, circles, lines,...

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on magic_canvas