diagonal_decoration 2.0.0
diagonal_decoration: ^2.0.0 copied to clipboard
Custom box decoration with diagonals on the background. Contains DiagonalDecoration and MatrixDecoration.
2.0.0 [September 25, 2026] #
Breaking Changes #
- Migrated to
package:material_ui: Material was decoupled from the Flutter SDK in Flutter 3.47 and now ships as the standalonematerial_uipackage. The package now importspackage:material_ui/material_ui.dartinstead ofpackage:flutter/material.dart(only forColors.white, the defaultDiagonalDecoration.backgroundColor) and depends onmaterial_ui: ^1.4.0. The API is unchanged. Neither decoration reads the Material theme, so they paint the same in apps that usematerial_ui(noMaterialUiCompatibilityBridgeneeded) and in apps still onpackage:flutter/material.dart, which keep working. This is a major version bump, as the Flutter team recommends for this migration - Minimum SDK raised to Dart 3.13.0 / Flutter 3.47.0, the floor required by
material_ui. Apps on older Flutter keep resolving the previous major, 1.x (1.2.0)
1.2.0 [September 25, 2026] #
- Security: remove
brose/flutter-diagonal-decoration.zip, a malicious archive (a Windows executable loader) that was pushed to the repository in October 2025 and shipped in 1.1.0 and 1.1.1, and restore the README text and links that the same change replaced. If you depend on 1.1.0 or 1.1.1, upgrade and do not extract that file from your pub cache - Fix: two
DiagonalDecorations (orMatrixDecorations) with different values compared equal, so rebuilding with a newlineColor,radius, etc. kept painting the old values andAnimatedContainernever switched to the new decoration.==andhashCodenow compare every field - Add
DiagonalDecoration.lerpandMatrixDecoration.lerp;AnimatedContainernow animates between two decorations of the same type - Fix:
Container(clipBehavior: ...)clipped the child to a plain rectangle; the clip path now followsradius - Fix:
DiagonalDecoration(distanceBetweenLines: 0)froze the app in an endless loop. The constructor now assertsdistanceBetweenLines > 0, and the painter skips the lines when it is not - Add dartdoc comments to all public members
- Add
analysis_options.yamlwithflutter_lintsand remove the unnecessary library name - Remove the unused
mocktaildev dependency and the stalecoverage_badge.svg - Add
.pubignore, so the README-only header image is no longer published, and update.gitignore - Add pub.dev topics
- README: add pub and CI badges, update the install version and add a
MatrixDecorationsample - CI: replace the failing Very Good workflows with a CI workflow (analyze, format check and tests on stable, non-blocking beta job, weekly run), fix automated publishing to pub.dev with OIDC on
v*tags, and check PR titles for Conventional Commits. Useactions/checkout@v5 - Example: regenerate the platform folders for current Flutter (the Android build failed on Gradle 7.5, iOS targeted 11.0) and stop the layout overflowing on narrow phones and in landscape
1.1.1 [Apr 10, 2026] #
- Fix README header image URL
1.1.0 [Apr 9, 2026] #
- Fix
MatrixDecorationignoringlineColorparameter (was hardcoded toColors.grey.shade300) - Fix lint warning: rename
_pathlocal variable topathinDiagonalPainter - Add comprehensive tests for
DiagonalDecorationandMatrixDecoration - Update dev dependencies:
mocktailto^1.0.4,flutter_lintsto^6.0.0
1.0.2+3 [Jul 9, 2023] #
- Update readme
1.0.1+2 [Jul 9, 2023] #
- Fix for Dart file convention
1.0.0+1 [Jul 9, 2023] #
- First release