Skip to content
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

Pass the PictureConfiguration to obtainKey #118

Merged
merged 1 commit into from
Feb 21, 2019

Conversation

dballesteros7
Copy link
Contributor

@dballesteros7 dballesteros7 commented Feb 21, 2019

This way the ExactAssetPicture can use the DefaultAssetBundle derived
from context through the LocalPictureConfiguration instead of always defaulting
to the rootBundle. This is helpful for tests and for local widget
context assets. All other provides just ignore the configuration.

This analogous to the implementation of Image.asset in Flutter.

Fix #117

This way the ExactAssetPicture can use the DefaultAssetBundle derived
from context through the LocalPictureConfiguration instead of always defaulting
to the rootBundle. This is helpful for tests and for local widget
context assets. All other provides just ignore the configuration.

This analogous to the implementation of Image.asset in Flutter.
Copy link
Owner

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dballesteros7
Copy link
Contributor Author

This should be ready to merge, the failure was the lint failure from the other PR.

@dnfield dnfield merged commit 416e849 into dnfield:master Feb 21, 2019
@dnfield
Copy link
Owner

dnfield commented Feb 25, 2019

This is going to be released on v0.10.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants