Skip to content

Asset variant detection should only work on directory names that are parse-able by the framework (2x, 3x) #69388

@AlexV525

Description

@AlexV525

Steps to Reproduce

Can repro from 1.17 to 1.23 master.

Run https://github.com/AlexV525/flutter_test_app (test-assets-conflict-page) for repro demo with master.

  1. Add two assets with same name, but not the same path. (e.g. assets/a.png and assets/b/a.png)
  2. Display those images in Flutter App.

image

Expected results: Display two different pictures/assets.

Actual results: Displayed same pictures/assets, which is the deeper one.

[✓] Flutter (Channel update-length-limiting-formatter, 1.23.0-19.0.pre.78, on Mac OS X 10.15.7 19H2 darwin-x64, locale zh-Hans-CN)

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: assetsPackaging, accessing, or using assetsfound in release: 1.23Found to occur in 1.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work ontoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

Status

Future bugs/improvements

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions