Skip to content
pubscout

borders

0.4.3, released a year ago by shirne.com

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

WASM-ready
$ flutter pub add borders
Source repository

What it does

Provides a collection of custom ShapeBorders such as ChamferBorder, TrapeziumBorder, StampBorder, GradientBorder, DashedBorder, and PolygonBorder for Flutter widgets. It supports border radii and animations.

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

Use it when

  • You need custom non-rectangular borders like chamfered corners, trapeziums, or polygons.
  • You want to implement dashed borders or gradient borders on containers.
  • You require animated shape borders.

Skip it when

  • You only need standard rectangular borders and basic rounded corners provided natively.
  • You need complex state-management or database solutions.

Strengths

  • Includes a wide variety of specific custom borders out of the box.
  • Supports border radius and animations.
  • Easy to integrate into standard ShapeDecoration.

Weaknesses

  • Limited documentation beyond the basic examples.
  • More niche borders might require manual fine-tuning.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Container(
    width: 100,
    height: 100,
    decoration: ShapeDecoration(
        shape: ChamferBorder(
            borderRadius: BorderRadius.circular(16),
            borderChamfer: BorderChamfer.vertical(
                top: true,
            ),
        ),
    ),
);

Alternatives

Packages that do the same job and could replace borders.