carded 0.0.3+1 copy "carded: ^0.0.3+1" to clipboard
carded: ^0.0.3+1 copied to clipboard

A replacement for the default Card widget (for shadows on all edges)

Carded #

The Card widget in Flutter applies shadows to the bottom and left of the card. CardyContainer is instead a simple Card with shadows on all four edges.

Usage #

Just use CardyContainer instead of Container/Card wherever you want to apply shadows on all four edges. The widget contains all properties of a Container, so styling and customization is similar to that of a Container.

CardyContainer(
    blurRadius: 8,
    padding: EdgeInsets.all(10),
    child: Text(
        'This is a container with shadows on all four edges',
        style: TextStyle(
        fontSize: 18,
        ),
    ),
)

Shadow customization #

  • Change the shadow color by using the shadowColor property
  • Change how far the shadow is cast by increasing the spreadRadius property
4
likes
150
pub points
52%
popularity

Publisher

verified publishercodesadhu.com

A replacement for the default Card widget (for shadows on all edges)

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on carded