figma_squircle
0.6.3, released 2 years ago by aloisdeniel.com
Smooth corner radii for Flutter, implementing Figma's corner smoothing.
What it does
Provides custom shapes and borders that implement Figma's corner smoothing algorithm. It allows developers to create smooth squircles and shapes with independent corner radiuses and smoothing parameters.
AI-written summary of version 0.6.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to achieve Figma-style smooth corner radii (squircles) on your containers and widgets.
- You need to clip widgets with a smooth rectangle border.
Skip it when
- You only need standard circular border radii provided by Flutter's default BorderRadius.
Strengths
- Implements Figma's corner smoothing math accurately.
- Supports independent smoothing and radius configuration for each corner.
- Includes clipping widgets and shape decorations.
Weaknesses
- Not documented beyond basic shape decorations and clipping.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Container(
height: 100,
width: 100,
decoration: ShapeDecoration(
color: Colors.red.withOpacity(0.75),
shape: SmoothRectangleBorder(
borderRadius: SmoothBorderRadius(
cornerRadius: 10,
cornerSmoothing: 0.5,
),
),
),
)Alternatives
Packages that do the same job and could replace figma_squircle.
- val_highlight_flutter
Flutter widgets for displaying and editing syntax-highlighted code.
80Compare - flutter_advanced_drawer
Customizable advanced drawer widget for Flutter
77Compare - flutter_table_plus
A customizable, type-safe Flutter table widget with scrolling, sorting, and cell editing.
77Compare - sliver_dashboard
Smooth, sliver-based drag and resize grid engine for Flutter dashboards.
76Compare