Search packages, repositories and app categories

figma_squircle cover
Package detailsv0.6.3

figma_squircle

Smooth corner radii for Flutter.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
46.9K
Likes
285
Pub points
140

Install package

flutter pub add figma_squircle

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

FigmaSquircle is a Flutter package that provides smooth, Figma-inspired corner radii for UI elements. It enables developers to create visually appealing rounded corners with precise control over curvature, mimicking the design language of Figma. The package works across all major platforms—Android, iOS, Web, macOS, Windows, and Linux—ensuring consistent appearance. It's ideal for modern app interfaces where subtle, elegant rounding enhances user experience. Built with performance in mind, it integrates seamlessly into existing Flutter projects using simple, intuitive APIs.

Use cases

  • Creating Figma-style rounded buttons
  • Designing modern card components
  • Implementing smooth UI transitions
  • Building responsive layouts with curved edges
  • Enhancing visual consistency across platforms

Key features

  • Figma-inspired corner curvature
  • Cross-platform compatibility
  • Simple integration with Flutter widgets
  • High-performance rendering
  • Customizable radius and curvature
  • Supports both clipper and decoration use cases

Suitable for

  • UI designers working in Flutter
  • Developers building modern mobile or web apps
  • Teams prioritizing design consistency
  • Projects requiring smooth, natural-looking corners
  • Apps targeting multiple platforms with unified design

Considerations

  • May require additional styling for complex shapes
  • Performance impact on large numbers of elements
  • Limited to corner radius customization
  • Not suitable for non-rounded geometries
  • Best used with compatible design systems

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Figma Squircle

image

Flutter implementation of Figma's corner smoothing.

Usage

Decoration

The SmoothRectangleBorder can be provided to a regular ShapeDecoration with a custom SmoothBorderRadius.

Container(
    height: 100,
    width: 100,
    decoration: ShapeDecoration(
        color: Colors.red.withOpacity(0.75),
        shape: SmoothRectangleBorder(
            borderRadius: SmoothBorderRadius(
              cornerRadius: 10,
              cornerSmoothing: 0.5,
            ),
        ),
    ),
)
Only

Each corner can have an independent smoothing and radius.

SmoothBorderRadius.only(
    topLeft: SmoothRadius(
        cornerRadius: 10,
        cornerSmoothing: 1,
    ),
    topRight: SmoothRadius(
        cornerRadius: 20,
        cornerSmoothing: 0.4,
    ),
    bottomLeft: SmoothRadius(
        cornerRadius: 5,
        cornerSmoothing: 0.8,
    ),
    bottomRight: SmoothRadius(
        cornerRadius: 30,
        cornerSmoothing: 0.6,
    ),
),
Clip

To clip any widget with a smooth rectangle, use the ClipSmoothRect.

ClipSmoothRect(
    radius: SmoothBorderRadius(
        cornerRadius: 10,
        cornerSmoothing: 1,
    ),
    child: Container(
        color: Colors.red,
        width: 100,
        height: 100,
    ),
)

Thanks

Categories

Source repository

Projects using this package