flutter - What is the functionality of .dart_tool folder in a Flutter application?
问题描述
I am new to flutter and I encountered this folder .dart_tool
. I am able to find the uses of each folder and files, except this one. I want to know what purpose does this folder serves.
解决方案
As @Shri noted in his answer, the Flutter documentation says:
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.
However, I would also add that it contains a package_config.json
file that specifies packages' locations and versions (which could cause a problem that I addressed in this answer), as well as Flutter build caches (in a flutter_build
directory).
推荐阅读
- python - Python 3 - pd.to_datetime 无法识别时区
- ios - 检测 UITextField 更改而不触发相关字段中的另一个
- python - python 3.x,`type`本身派生自`object`,`object`派生自`type`
- c# - Task.Run( asnyc () => ) 阻塞/不运行所有任务 C#
- image - 图片标签与 CSS 媒体查询
- php - Woocommerce 以编程方式将“简单”产品更改为具有各种下载和硬拷贝的“可变”产品
- rust - 将“Deref”实现为返回复合结构的字段是否惯用?
- algorithm - 如何在 LaTeX 中添加对算法环境的注释?
- xml - 如何修复“未找到与给定名称匹配的资源”错误?
- python - 我可以为每条曲线分离数据吗?