Skip to content
pubscout

flutter_polygon

0.3.0+2, released 5 years ago by an unverified publisher

Provides widgets to clip and border content with regular polygon shapes

WASM-readyCopyleft license
$ flutter pub add flutter_polygon
Source repository

What it does

The package offers a ClipPolygon widget to clip child widgets into a regular polygon and a PolygonBorder shape for buttons and other widgets. It supports custom side count, border radius, rotation, shadows and borders.

AI-written summary of version 0.3.0+2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to clip a widget into a regular polygon shape
  • You want a button or container with a polygonal border
  • You need simple, declarative polygon styling without custom painting

Skip it when

  • You require irregular or dynamic polygon shapes
  • You need advanced animation or physics for polygons

Strengths

  • Easy to use declarative API
  • Supports border radius, rotation, shadows and borders
  • Works across all Flutter platforms

Weaknesses

  • Only supports regular polygons
  • No support for irregular or dynamic polygons
  • Limited to static shapes

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ClipPolygon(
  sides: 6,
  borderRadius: 5.0,
  rotate: 90.0,
  child: Container(color: Colors.black),
);

Alternatives

Packages that do the same job and could replace flutter_polygon.

  • ticketcher

    Create ticket-style cards, boarding passes, and coupons with custom notches, borders, and dividers.

  • glowy_borders

    A wrapper widget to animate borders and glows around widgets using gradients.

  • borders

    Custom ShapeBorders like Dashed, Chamfer, Trapezium, and Polygon with radius and animation support.

  • ticket_clippers

    Flutter package that provides you clippers to create tickets.