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 childDecoration
s -
TransformDecoration
- used for transforming a childDecoration
withRSTransform
, it also contains some helper constructors for common cases like padded, fixed, aligned decorationsTransformDecoration
TransformDecoration.padding
TransformDecoration.fromRect
TransformDecoration.sizeAligned
TransformDecoration.anchored
-
ClipDecoration
- clips a childDecoration
ClipDecoration.path
ClipDecoration.rect
ClipDecoration.rrect
-
CustomDecoration
- used for static / dynamic painting a custom stuff withCanvas
APICustomDecoration.still
CustomDecoration.animated
-
PaintDecoration
- applies aPaint
on childDecoration
-
BuilderDecoration
- aDecoration
that builds a realDecoration
, very helpful when used withAnimatedContainer
where you can easily create a live, morphing decoration
Check example folder for some code samples