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

Flutter package to draw a path int a widget.

know whether this package might be useful for them.Draw a line cross a widget this package divide Widget into a 12 x 12 grid each intersect represent a point that the path might change path direction or position .

Features #

Getting started #

You need to pass a Point Object which take 3 parameter x : represent the point in width which is in the range of (0 - 12) 0 : left most screen 12 : right most screen

y : represent the point in heigh which is in the range of (0 - 12) 0 : top most screen 12 : bottom most screen

dir : 0 or 1 0 : represent an Ellipse 1 : represent a Hyperbola

Usage #


Align(
    alignment: Alignment.topCenter,
    child: Opacity(
        opacity: 1,
        child: ClipPath(
        clipper: WaveClipper([
            Point(x: 0, y: 12, dir: 0),
            Point(x: 2, y: 6, dir: 1),
            Point(x: 4, y: 4, dir: 0),
            Point(x: 8, y: 0, dir: 1),
        ]),
        child: Container(
            color: Colors.blue[900],
            height: 100,
        ),
        ),
    ),
),

Additional information #

2
likes
120
pub points
27%
popularity

Publisher

unverified uploader

Flutter package to draw a path int a widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on path_drawer