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

Hotfix for preview problem #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SupremeDeity
Copy link
Contributor

No description provided.

for (final image in raw) {
if (image.containsKey('variants')) {
final _variants = image['variants'];
for (final variant in _variants.keys) {
print('variant_key: $variant');
Copy link
Member

Choose a reason for hiding this comment

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

These debug prints should be removed?

}
assert(data!['preview'].containsKey('images'));
final raw = data!['preview']['images'].cast<Map<String, dynamic>>();
final raw = data!['preview']['images'].cast<Map<String?, dynamic>>();
Copy link
Member

Choose a reason for hiding this comment

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

When is the key here ever null?

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