Skip to content
pubscout

figma_squircle

0.6.3, released 2 years ago by aloisdeniel.com

Smooth corner radii for Flutter, implementing Figma's corner smoothing.

WASM-ready
$ flutter pub add figma_squircle
Source repository

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.