borders
0.4.3, released a year ago by shirne.com
Custom ShapeBorders like Dashed, Chamfer, Trapezium, and Polygon with radius and animation support.
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.
- mobkit_dashed_border
Custom border implementation for dashed lines and curves in Flutter.
57Compare - flutter_sliding_toast
Displays customizable sliding and popup toasts with animations, queueing, and stacking modes.
71Compare - material_new_shapes
Provides Material 3 shape definitions (e.g., RoundedPolygon, Cubic) for Flutter UI.
48Compare - shape_of_view_null_safe
Give a custom shape to any Flutter widget with pre-built or custom shapes.
55Compare