我试图实现 font awesome pro 图标,但是当文档要求我使用 ./tool/update.sh
进行更新时它出现了这个错误。任何解决方案如何解决这个问题?
Custom icons.json found, using local data only.
./tool/update.sh: line 6: dart: command not found
./tool/update.sh: line 7: dart: command not found
./tool/update.sh: line 8: dartfmt: command not found
./tool/update.sh: line 9: dartfmt: command not found
最佳答案
我面临着完全相同的问题。该程序可用
您可以从 shell 更新 PATH 环境变量.. 或更改脚本以使用此路径(硬编码)。
这是示例:<FLUTTER_HOME>/bin/cache/dart-sdk/bin/dartfmt -w ./lib/font_awesome_flutter.dart
<FLUTTER_HOME>/bin/cache/dart-sdk/bin/dartfmt -w ./example/lib/icons.dart
关于Flutter:Font Awesome Pro 更新失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63012657/