polygon_painter 1.0.1 copy "polygon_painter: ^1.0.1" to clipboard
polygon_painter: ^1.0.1 copied to clipboard

A flutter package to draw equilateral polygons on a canvas.

Polygon Painter #

Pub Version GitHub issues GitHub stars

This package provides a PolygonPainterStateless class that allows you to draw polygons with a customizable number of corners, start angle, stroke width, color, radius, painting style, and stroke join.

Getting Started #

To use this package, add polygon_painter as a dependency in your pubspec.yaml file.

Usage #

Here is a basic example of how to use the PolygonPainterStateless class:

SizedBox(
    height: 300,
    width: 300,
    child: CustomPaint(
        painter: PolygonPainter(
            controller: controller, // PolygonPainterController
        ),
    ),
),

Additional Information #

For more information, check out the documentation

0
likes
130
pub points
0%
popularity

Publisher

verified publishermelihhakanpektas.com

A flutter package to draw equilateral polygons on a canvas.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on polygon_painter