Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vector_graphics/test/listener_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void main() {
final FlutterVectorGraphicsListener listener =
FlutterVectorGraphicsListener(pictureFactory: factory);
listener.onPaintObject(
color: const ui.Color(0xff000000).value,
color: const ui.Color(0xff000000).toARGB32(),
strokeCap: null,
strokeJoin: null,
blendMode: BlendMode.srcIn.index,
Expand Down
3 changes: 2 additions & 1 deletion third_party/packages/flutter_svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.2.3

* Replaces use of deprecated Color.value.
* Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.

## 2.2.2
Expand Down
4 changes: 2 additions & 2 deletions third_party/packages/flutter_svg/lib/src/loaders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SvgTheme {
/// Creates a [vg.SvgTheme] from this.
vg.SvgTheme toVgTheme() {
return vg.SvgTheme(
currentColor: vg.Color(currentColor.value),
currentColor: vg.Color(currentColor.toARGB32()),
fontSize: fontSize,
xHeight: xHeight,
);
Expand Down Expand Up @@ -111,7 +111,7 @@ class _DelegateVgColorMapper extends vg.ColorMapper {
attributeName,
Color(color.value),
);
return vg.Color(substituteColor.value);
return vg.Color(substituteColor.toARGB32());
}
}

Expand Down
2 changes: 1 addition & 1 deletion third_party/packages/flutter_svg/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_svg
description: An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable Vector Graphics 1.1 files.
repository: https://github.com/flutter/packages/tree/main/third_party/packages/flutter_svg
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_svg%22
version: 2.2.2
version: 2.2.3

environment:
sdk: ^3.8.0
Expand Down