-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[video_player] Add a Uri-typed factory method
#3513
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
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. |
|
As you can see CI is failing because of an analyzer issue in packages that depends on When I run the local analyzer this is the output: But the output of CIRRUS error message is: Resuming, Cirrus CI is failing because the dependency
Seems that cirrus ci has a cache and his dependencies are different than the examples, is this correct? |
It's not a cache, this is a test that uses in-tree dependencies to pre-detect issues that would otherwise only show up when publishing the package. This will need to be a two-part PR. You can add an Unrelated but:
This is a confusing description for the PR; there's no bug being fixed here. It's just an improvement to the types used in the API. |
|
This appears to be addressing the same issue as #3510; I would encourage the two of you to collaborate on a single PR. |
Yes, will do it until the next week. Sorry for the delay |
|
@stuartmorgan Now CI is failing only in the repo checks after adding the |
stuartmorgan-g
left a comment
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.
LGTM
|
Overriding version checks: We don't need to publish the examples with the |
|
Overriding stale tree status. |
|
auto label is removed for flutter/packages, pr: 3513, Mergeability of pull request flutter/packages/3513 could not be determined at time of merge.. |
|
AFAICT deprecating |
That issue is about someone passing an invalid URL to a method that requires a URL, which this transition makes literally impossible. I strongly disagree that making a class of bug impossible "doesn't help". I also have direct evidence that it does help, because doing the same transition in the
If someone is currently passing valid, constant URLs, or if the behavior they want is just hoping that
This is an internal implementation detail, which is irrelevant to designing a good API.
It is true that we could continue to enforce API requirements via comment rather than via the type system, deliberately allowing people to pass invalid data and then throwing an exception when they do, but I disagree that doing so is better. We could also have made the NNBD transition easier for clients by just marking every single parameter's type as nullable and continuing to |
This PR improves VideoPlayerController network constructor with the datasource type. The solution follows the comments on the issue #121927.
Fixes #121927
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.