-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_svg] Error handling enhancement #8016
base: main
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
696045c
to
638f96f
Compare
Thanks for the submission! In the future, please do not delete the checklist that is in the PR template; it is there for a reason. This PR is missing required elements described in the checklist (I’ve restored it to the PR description), which need to be addressed before it moves forward with review. I am marking the PR as a Draft. Please review the checklist, updating the PR as appropriate, and when that’s complete please feel free to mark the PR as ready for review. |
- copy from this PR: dnfield/vector_graphics#258
- copy from this PR: dnfield/flutter_svg#1104
638f96f
to
9672f24
Compare
@stuartmorgan thanks for your advice, I've just updated it, please help me check if it is ok now. |
@minhhung2556 The PR is currently failing many CI checks; you can look at Details > View more details > stdout to see what the issues are and address them. |
@@ -674,7 +686,7 @@ class VectorGraphicUtilities { | |||
/// | |||
/// It is the caller's responsibility to handle disposing the picture when | |||
/// they are done with it. | |||
Future<PictureInfo> loadPicture( | |||
Future<PictureInfo?> loadPicture( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a breaking change, so will need to be evaluated in the context of flutter/flutter#157626
If the decision there is (as I hope) to start using semver for vector_graphics*
, this would need to be versioned accordingly, or would need a non-breaking alternative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than making it null, we can throw/catch an exception I think.
I think it failed because of this commit: 9672f24 Regarding your review, I think I need to separate into 2 PRs: 1 for vector_graphics and 1 for flutter_svg
|
Title
Purpose
To fix these related issues below
My related PRs at the old repositories
Changes Made
Testing
Impact
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.