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

outdatedDart 1 only

Flutter Custom Clipper using Polygon shapes

Polygon Clipper #

A Flutter plugin to create views using regular polygon shapes (e.g. Pentagons and Hexagons).

Example1 Example2 Example3

Installation #

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

Usage #

// Import package  
import 'package:polygon_clipper/polygon_clipper.dart';  
  
new ClipPolygon(  
 sides: 6, 
 borderRadius: 5.0, 
 boxShadows: [  
  new PolygonBoxShadow(color: Colors.black, elevation: 1.0),
  new PolygonBoxShadow(color: Colors.grey, elevation: 5.0)
 ],
 child: new Container(color: Colors.black),
);

Parameters #

ClipPolygon
Param Type Description
sides int The number of sides to draw the polygon
borderRadius double This value is used in degrees.
child Widget The widget that will be rendered inside the polygon.
boxShadows PolygonBoxShadow[] A list of box shadows.
PolygonBoxShadow
Param Type Description
color Color The color of the box shadow.
elevation double The distance of the shadow.

Contributing #

If you wish to contribute to this project, I encourage you to open a pull request.

67
likes
0
pub points
81%
popularity

Publisher

unverified uploader

Flutter Custom Clipper using Polygon shapes

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on polygon_clipper