Skip to content

pskink/decorations_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decorations_ex

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.

Available Decorations

  • DecorationStack - paints a stack of multiple child Decorations

  • TransformDecoration - used for transforming a child Decoration with RSTransform, it also contains some helper constructors for common cases like padded, fixed, aligned decorations

    • TransformDecoration
    • TransformDecoration.padding
    • TransformDecoration.fromRect
    • TransformDecoration.sizeAligned
    • TransformDecoration.anchored
  • ClipDecoration - clips a child Decoration

    • ClipDecoration.path
    • ClipDecoration.rect
    • ClipDecoration.rrect
  • CustomDecoration - used for static / dynamic painting a custom stuff with Canvas API

    • CustomDecoration.still
    • CustomDecoration.animated
  • PaintDecoration - applies a Paint on child Decoration

  • BuilderDecoration - a Decoration that builds a real Decoration, very helpful when used with AnimatedContainer where you can easily create a live, morphing decoration

Example

Check example folder for some code samples

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages