Would like to be able to avoid asset load errors at runtime #11477
Labels
a: assets
Packaging, accessing, or using assets
framework
flutter/packages/flutter repository. See also f: labels.
P3
Issues that are less important to the Flutter project
team-framework
Owned by Framework team
tool
Affects the "flutter" command-line tool. See also t: labels.
triaged-framework
Triaged by Framework team
Projects
Currently with Flutter it's very easy to end up with asset load errors at runtime since assets are keyed off of strings, which are not in any way validated at analyze time (or generated/provided by the system).
Posse's currently most common crash in their live app is a failed asset string load.
They also have a manual file of string constants that they maintain from their pubspec.yaml (presumably could be autogenerated pretty easily).
This just seems like a pattern we could help with. This bug is about finding ideas to reduce the likelihood of this kind of failure.
FYI @yjbanov
The text was updated successfully, but these errors were encountered: