This package provides a collection of custom classes that extend Flutter's built-in Decoration class. These decorations can be used to enhance the visual appearance of various widgets in your Flutter application, including Container, AnimatedContainer, DecoratedBox and any other widget that accepts a Decoration property.
-
DecorationStack- paints a stack of multiple childDecorations -
TransformDecoration- used for transforming a childDecorationwithRSTransform, it also contains some helper constructors for common cases like padded, fixed, aligned decorationsTransformDecorationTransformDecoration.paddingTransformDecoration.fromRectTransformDecoration.sizeAlignedTransformDecoration.anchored
-
ClipDecoration- clips a childDecorationClipDecoration.pathClipDecoration.rectClipDecoration.rrect
-
CustomDecoration- used for static / dynamic painting a custom stuff withCanvasAPICustomDecoration.stillCustomDecoration.animated
-
PaintDecoration- applies aPainton childDecoration -
BuilderDecoration- aDecorationthat builds a realDecoration, very helpful when used withAnimatedContainerwhere you can easily create a live, morphing decoration
Check example folder for some code samples