From 05f0f196a8d373ac55cf07d5cff4c70d639c308a Mon Sep 17 00:00:00 2001 From: Dan Field Date: Tue, 24 Oct 2023 16:04:47 -0700 Subject: [PATCH] fixes --- packages/flutter_svg/CHANGELOG.md | 3 +++ packages/flutter_svg/example/pubspec.yaml | 6 +++--- packages/flutter_svg/lib/svg.dart | 2 +- packages/flutter_svg/pubspec.yaml | 6 +++--- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/flutter_svg/CHANGELOG.md b/packages/flutter_svg/CHANGELOG.md index f9268123..d7781e76 100644 --- a/packages/flutter_svg/CHANGELOG.md +++ b/packages/flutter_svg/CHANGELOG.md @@ -3,6 +3,9 @@ ## 2.0.8 - Adds back `DefaultSvgTheme`. +- Bump vector_graphics to 1.1.9+1 +- Adds debugFillProperties +- Fix bug for cache keys. ## 2.0.7 diff --git a/packages/flutter_svg/example/pubspec.yaml b/packages/flutter_svg/example/pubspec.yaml index a4f3c406..c6691b6c 100644 --- a/packages/flutter_svg/example/pubspec.yaml +++ b/packages/flutter_svg/example/pubspec.yaml @@ -32,8 +32,8 @@ environment: # dependency_overrides: # vector_graphics_codec: -# path: ../../vector_graphics/packages/vector_graphics_codec +# path: ../../../../vector_graphics/packages/vector_graphics_codec # vector_graphics_compiler: -# path: ../../vector_graphics/packages/vector_graphics_compiler +# path: ../../../../vector_graphics/packages/vector_graphics_compiler # vector_graphics: -# path: ../../vector_graphics/packages/vector_graphics +# path: ../../../../vector_graphics/packages/vector_graphics diff --git a/packages/flutter_svg/lib/svg.dart b/packages/flutter_svg/lib/svg.dart index a87d5180..bfad274f 100644 --- a/packages/flutter_svg/lib/svg.dart +++ b/packages/flutter_svg/lib/svg.dart @@ -505,7 +505,7 @@ class SvgPicture extends StatelessWidget { StringProperty('bytesLoader', bytesLoader.toString(), showName: false)); properties.add(DoubleProperty('width', width, defaultValue: null)); properties.add(DoubleProperty('height', height, defaultValue: null)); - properties.add(EnumProperty('alignment', alignment, + properties.add(DiagnosticsProperty('alignment', alignment, defaultValue: Alignment.center)); properties.add(DiagnosticsProperty( 'allowDrawingOutsideViewBox', allowDrawingOutsideViewBox, diff --git a/packages/flutter_svg/pubspec.yaml b/packages/flutter_svg/pubspec.yaml index c6642e58..fcbb67ff 100644 --- a/packages/flutter_svg/pubspec.yaml +++ b/packages/flutter_svg/pubspec.yaml @@ -7,9 +7,9 @@ version: 2.0.7 dependencies: flutter: sdk: flutter - vector_graphics: ^1.1.7 - vector_graphics_codec: ^1.1.7 - vector_graphics_compiler: ^1.1.7 + vector_graphics: ^1.1.9+1 + vector_graphics_codec: ^1.1.9+1 + vector_graphics_compiler: ^1.1.9+1 dev_dependencies: flutter_test: