flutter_corner_shape 0.1.4
flutter_corner_shape: ^0.1.4 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.3 #
0.1.1 #
Changed #
- Added
.pubignoreto 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 continuoussuperellipse(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
OutlinedBorderthat works withShapeDecoration,Material,Card,Chip,Dialog, and any widget acceptingShapeBorder.- CSS-style radius collision clamping when adjacent radii exceed available edge length.
lerpFrom/lerpTosupport for smooth transitions, including interop withRoundedRectangleBorder.- Performance fast-path: delegates to native
Canvas.drawRRect()when all corners areround.
- CornerPathBuilder — Bézier math engine that generates
Pathsegments for each K value using cubiccubicTo()approximation with control point factors derived from the superellipse exponent. - ClipCornerShape — Clip widget (equivalent to
ClipRRectfor corner shapes) with.all()convenience constructor. - CornerShapeDecoration — Convenience
ShapeDecorationwrapper combining color, gradient, image, shadows, border side, border radius, and corner shape in one declaration. - CornerShapeSpecTween —
Tween<CornerShapeSpec>for animating between any two corner shape configurations.