diagonal_decoration 1.0.0+1 copy "diagonal_decoration: ^1.0.0+1" to clipboard
diagonal_decoration: ^1.0.0+1 copied to clipboard

Custom box decoration with diagonals on the background

Diagonal Decoration #

Installing: #

In your pubspec.yaml

dependencies:
  diagonal_decoration: ^1.0.0

Basic Usage: #

Just add DiagonalDecoration or MatrixDecoration to your Container's decoration parameter

    return Container(
      width: 200,
      height: 200,
      decoration: DiagonalDecoration(),
    );

Advanced usage #

    decoration: const DiagonalDecoration(
       lineColor: Colors.black,
       backgroundColor: Colors.grey,
       radius: Radius.circular(20),
       lineWidth: 1,
       distanceBetweenLines: 5,
    )

Check out other Yako packages: Badges, Settings UI, Status Alert, Full Screen Menu and more to come!

41
likes
0
pub points
77%
popularity

Publisher

verified publisheryako.io

Custom box decoration with diagonals on the background

Repository (GitHub)
View/report issues

Topics

#ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on diagonal_decoration