flutter_corner_shape 0.1.5 copy "flutter_corner_shape: ^0.1.5" to clipboard
flutter_corner_shape: ^0.1.5 copied to clipboard

CSS corner-shape for Flutter. Round, scoop, bevel, notch, squircle, and superellipse corners — per-corner control, smooth animations, and a drop-in ShapeBorder + Clipper.

Changelog #

0.1.5 #

Updated #

  • Updated the images to use the div tag in the read me file to show the images properly on pub dev

0.1.4 #

Updated #

  • Updated the images to use the p tag in the read me file to show the images properly on pub dev

0.1.3 #

Added #

  • Added the examples images in the readme file for better understanding the package really do

0.1.2 #

Updated #

  • Updated the correct url for the home page and repository

0.1.1 #

Changed #

  • Added .pubignore to exclude example platform folders, IDE configs, build artifacts, and documentation scripts from the published package, reducing the published package size.

0.1.0 #

Initial release of flutter_corner_shape — CSS corner-shape for Flutter.

Added #

  • CornerShapeValue — Single corner shape model with 6 keyword presets (round, squircle, bevel, scoop, notch, square) and continuous superellipse(K) control from K = −∞ to +∞.
  • CornerShapeType — Enum of CSS corner-shape keyword values.
  • CornerShapeSpec — Per-corner shape specification mirroring CSS shorthand with constructors: .all(), .only(), .symmetric(), .vertical(), .horizontal().
  • CornerShapeBorder — Drop-in OutlinedBorder that works with ShapeDecoration, Material, Card, Chip, Dialog, and any widget accepting ShapeBorder.
    • CSS-style radius collision clamping when adjacent radii exceed available edge length.
    • lerpFrom / lerpTo support for smooth transitions, including interop with RoundedRectangleBorder.
    • Performance fast-path: delegates to native Canvas.drawRRect() when all corners are round.
  • CornerPathBuilder — Bézier math engine that generates Path segments for each K value using cubic cubicTo() approximation with control point factors derived from the superellipse exponent.
  • ClipCornerShape — Clip widget (equivalent to ClipRRect for corner shapes) with .all() convenience constructor.
  • CornerShapeDecoration — Convenience ShapeDecoration wrapper combining color, gradient, image, shadows, border side, border radius, and corner shape in one declaration.
  • CornerShapeSpecTweenTween<CornerShapeSpec> for animating between any two corner shape configurations.
4
likes
160
points
211
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CSS corner-shape for Flutter. Round, scoop, bevel, notch, squircle, and superellipse corners — per-corner control, smooth animations, and a drop-in ShapeBorder + Clipper.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_corner_shape