| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
It looks like the CI failure is not related to my changes:
|
Sorry, something went wrong.
|
I've resolved the conflicts. |
Sorry, something went wrong.
|
Please merge this PR, really useful! |
Sorry, something went wrong.
|
One use case could be to use it with a seamless image pattern and repeat option, in order to scale the pattern. |
Sorry, something went wrong.
|
Any plan to merge this? |
Sorry, something went wrong.
|
I've resolved the conflicts again. |
Sorry, something went wrong.
|
This test failure appears to be spurious. |
Sorry, something went wrong.
|
If you don't plan to merge this PR, could you at least tell why and close it? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
This PR exposes the scale argument of CachedNetworkImageProvider in the CachedNetworkImage constructor.
⤵️ What is the current behavior?
Currently you cannot set the scale used by the implicitly instantiated CachedNetworkImageProvider, so if you need to set the image scale then you have to use something like Image(image: CachedNetworkImageProvider(url)) so you can't take advantage of the various nice features of CachedNetworkImage.
🆕 What is the new behavior (if this is a feature change)?
Now you can pass the scale argument.
💥 Does this PR introduce a breaking change?
No. The argument has the same default as CachedNetworkImageProvider so the behavior is unchanged if not supplied.
🐛 Recommendations for testing
Try supplying different values of scale to CachedNetworkImage and ensure they take effect.
📝 Links to relevant issues/docs
#572
🤔 Checklist before submitting