asset_directory_does_not_exist
The asset directory '{0}' doesn't exist.
Description
#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:
yaml
name: example
flutter:
assets:
- assets/
Common fixes
#If the path is correct, then create a directory at that path.
除非另有说明,文档之所提及适用于 Dart 3.7.3 版本,本页面最后更新时间: 2025-05-08。 查看文档源码 或者 报告页面问题。