[various] Replace deprecated Color.value in SVG packages#10482
Merged
auto-submit[bot] merged 1 commit intoflutter:mainfrom Nov 21, 2025
Merged
[various] Replace deprecated Color.value in SVG packages#10482auto-submit[bot] merged 1 commit intoflutter:mainfrom
auto-submit[bot] merged 1 commit intoflutter:mainfrom
Conversation
Replaces the deprecated `Color.value` with the equivalent `toARGB()`. While this method is discouraged for many use cases, since it's for interacting with the `vector_graphics` `Color` class, which uses a 32-bit ARGB value as its fundamental representation, this appears to be the correct replacement. Part of flutter/flutter#159739
There was a problem hiding this comment.
Code Review
This pull request correctly replaces the deprecated ui.Color.value with ui.Color.toARGB32() in the vector_graphics and flutter_svg packages to resolve a deprecation. The changes are straightforward and correct. The corresponding version and changelog updates are also included. The changes look good to me.
As a minor note, there is a typo in the pull request title ('packgaes' instead of 'packages').
domesticmouse
approved these changes
Nov 21, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 21, 2025
github-merge-queue bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Nov 21, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
okorohelijah
pushed a commit
to okorohelijah/flutter
that referenced
this pull request
Nov 21, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mboetger
pushed a commit
to mboetger/flutter
that referenced
this pull request
Dec 2, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
reidbaker
pushed a commit
to AbdeMohlbi/flutter
that referenced
this pull request
Dec 10, 2025
flutter/packages@b1e2fb0...e67b6be 2025-11-21 danferreiradev@gmail.com [file_selector] Implement canCreateDirectories on macos and linux (flutter/packages#10443) 2025-11-21 stuartmorgan@google.com [various] Replace deprecated Color.value in SVG packages (flutter/packages#10482) 2025-11-20 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes compilation error with unbounded type parameter for InstanceManager (flutter/packages#10483) 2025-11-20 stuartmorgan@google.com [webview_flutter] Replace deprecated Color.value (flutter/packages#10480) 2025-11-20 stuartmorgan@google.com [google_maps_flutter] Replace deprecated color APIs in platform interface (flutter/packages#10477) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter (stable) from b45fa18 to f5a8537 (12 revisions) (flutter/packages#10478) 2025-11-20 engine-flutter-autoroll@skia.org Roll Flutter from de4be4f to 9f383e0 (21 revisions) (flutter/packages#10481) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the deprecated
Color.valuewith the equivalenttoARGB(). While this method is discouraged for many use cases, since it's for interacting with thevector_graphicsColorclass, which uses a 32-bit ARGB value as its fundamental representation, this appears to be the correct replacement.Part of flutter/flutter#159739
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3