smooth_border 1.0.2 copy "smooth_border: ^1.0.2" to clipboard
smooth_border: ^1.0.2 copied to clipboard

iOS-style continuous corner radius (squircle) for Flutter. A ShapeBorder that works with any widget — Container, Card, Material, ClipPath, and more.

smooth_border #

1.0.2 #

  • Fix README version reference.

1.0.1 #

Added #

  • Golden tests — 6 visual test suites with side-by-side comparisons:
    • Standard vs smooth corners at radius 8, 16, 24
    • Smooth radius range (0–32)
    • Smoothing intensity levels (0.0, 0.3, 0.6, 1.0)
    • Border styles (none, thin, thick, colored)
    • Aspect ratios (square, wide, tall, small)
    • ClipPath with SmoothRectangleClipper

1.0.0 #

Initial Release #

  • SmoothRectangleBorder — iOS-style continuous corner radius as a ShapeBorder. Works with Container, Card, Material, ElevatedButton, Dialog, and any widget that accepts ShapeBorder.
  • SmoothRectangleClipperCustomClipper<Path> for ClipPath to clip any widget to a squircle shape.
  • smoothPath() — core path generation function using cubic bezier curves derived from Figma's smooth corners algorithm.
  • Adjustable smoothing0.0 (standard circular) to 1.0 (maximum smoothness). Default 0.6 matches iOS/Figma.
  • Symmetric corners — all 4 corners are identical regardless of widget aspect ratio.
  • Zero dependencies — pure Dart/Flutter implementation.
2
likes
160
points
223
downloads

Documentation

API reference

Publisher

verified publisherjhonacode.com

Weekly Downloads

iOS-style continuous corner radius (squircle) for Flutter. A ShapeBorder that works with any widget — Container, Card, Material, ClipPath, and more.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smooth_border