smooth_corner
1.1.1, released 2 years ago by an unverified publisher
A rectangular border with variable smoothness imitated from Figma.
WASM-ready
What it does
Provides custom widgets and shape borders like SmoothContainer, SmoothCard, and SmoothRectangleBorder to implement smooth iOS-style rounded corners and squircles in Flutter.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to implement Figma-style corner smoothing or iOS-style squircles in your Flutter app.
- You need custom rounded shapes with adjustable smoothness ranging from standard rounded rectangles to superellipses.
Skip it when
- You only need standard Flutter rounded rectangles without custom Figma-style smoothness.
- You are looking for complex layout widgets or full component UI libraries.
Strengths
- Adjustable smoothness parameter to control the exact curve of the corners.
- Provides built-in drop-in replacements for common widgets like Container, Card, and ClipRRect.
- Exposes SmoothRectangleBorder for custom ShapeDecoration and clipping uses.
Weaknesses
- Limited to rectangle border smoothness and specific wrapper widgets.
- No documentation on performance impacts for heavy lists containing many smooth corners.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SmoothContainer(
width: 200,
height: 200,
smoothness: 0.6,
side: BorderSide(color: Colors.cyan, width: 2),
borderRadius: BorderRadius.circular(40),
child: child,
alignment: Alignment.center,
)Alternatives
Packages that do the same job and could replace smooth_corner.
- glow_container
A Flutter widget providing an animated glowing border effect for rectangular containers.
67Compare - glowy_borders
A wrapper widget to animate borders and glows around widgets using gradients.
49Compare