Skip to content

[CP] Do not try to load main/default asset image if only higher-res variants exist #128450

@andrewkolos

Description

@andrewkolos

Issue Link

#127090

Commit Hash

759ebef

Target

stable

PR Link

#128449

Changelog Description

Restores the ability to define an asset that only has resolution-aware variants.

Impacted Users

all Flutter devs

Impact Description

Impacts the shipping production app. Customer apps on running on devices with low pixel densities may not be able to display assets.

Workaround

Yes. The user can still declare the resolution-aware variants explicitly in pubspec.yaml. They can also add the parent directory as an entry in pubspec.yaml.

Risk

low

Test Coverage

yes

Validation Steps

The original issue has a repro that can be tested with a low DPR device (like an iPhone 3 SE)

Metadata

Metadata

Assignees

Labels

cp: approvedApproved cherry-pick requestcp: merge-to-stableCherry-picks that should be merged to stablecp: mergedCherry-pick has been merged to the release branch.cp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions