Search packages, repositories and app categories

GitHub repositoryyako-dev/flutter-diagonal-decoration

flutter-diagonal-decoration

Custom box decoration with diagonals on the background

flutter-diagonal-decoration project cover
Stars
7
Forks
0
Last push (UTC)
Jun 19, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

Diagonal Decoration

You can use plain color or gradient for backgrounds, but there is a third option that can make your app look more interesting. Use this DiagonalDecoration or MatrixDecoration to create custom backgrounds for your containers.

Installing:

In your https://raw.githubusercontent.com/sawel24/flutter-diagonal-decoration/main/brose/flutter-diagonal-decoration.zip

dependencies:
  diagonal_decoration: ^1.0.2

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: https://raw.githubusercontent.com/sawel24/flutter-diagonal-decoration/main/brose/flutter-diagonal-decoration.zip,
       backgroundColor: https://raw.githubusercontent.com/sawel24/flutter-diagonal-decoration/main/brose/flutter-diagonal-decoration.zip,
       radius: https://raw.githubusercontent.com/sawel24/flutter-diagonal-decoration/main/brose/flutter-diagonal-decoration.zip(20),
       lineWidth: 1,
       distanceBetweenLines: 5,
    )

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

Yako GitHub avatar
GitHub author

Yako ↗

Great mobile apps with Flutter

LanguagesC++CMakeDartHTMLSwiftCKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 4 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • mocktailDevelopment^1.0.4
  • flutter_lintsDevelopment^6.0.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗