DeepSource has joined Harness. Learn more
Dart Analyze logoDart Analyze/
DRT-W1228

Asset directory does not existDRT-W1228

Major severityMajor
Bug Risk categoryBug Risk

The analyzer produces this diagnostic when an asset list contains a value referencing a directory that doesn't exist.

Example

Assuming that the directory assets doesn't exist, the following code produces this diagnostic because it's listed as a directory containing assets:

name: example
flutter:
  assets:
    - assets/

Common fixes

If the path is correct, then create a directory at that path.

If the path isn't correct, then change the path to match the path of the directory containing the assets.