最佳答案
正如@Shri 在他的回答中指出的,Flutter documentation说:
The
.dart_tool
directory, which is new in Dart 2, is used by pub and other tools. It replaces the.pub
directory as of the 2.0.0-dev.32.0 SDK release.
但是,我还要补充一点,它包含一个
package_config.json
指定包位置和版本的文件(这可能会导致我在 this answer 中解决的问题),以及 Flutter 构建缓存(在 flutter_build
目录中)。
关于flutter - Flutter 应用程序中 .dart_tool 文件夹的功能是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63510246/