Dart基础环境配置等
macOS 环境配置
dart和flutter安装
因为Flutter依赖于Dart,所以直接安装Flutter就好了,Dart会包含在内。
brew install flutter
==> flutter: 3.7.7 (auto_updates)
https://flutter.dev/
/usr/local/Caskroom/flutter/3.7.7 (18,787 files, 2.4GB)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/flutter.rb
==> Name
Flutter SDK
==> Description
UI toolkit for building applications for mobile, web and desktop
==> Artifacts
flutter/bin/dart (Binary)
flutter/bin/flutter (Binary)
==> Analytics
install: 583 (30 days), 9,134 (90 days), 41,737 (365 days)
idea 配置
idea 安装 flutter插件,安装后,进入idea配置页面,进行相关配置, 由上面brew安装flutter的信息可知,flutter的SDK所在目录是: /usr/local/Caskroom/flutter/3.7.7/flutter
。
创建项目
Dart测试项目
Flutter测试项目
参考资料
文档信息
- 本文作者:Bob.Zhu
- 本文链接:https://adolphor.github.io/2023/03/19/01-dart-develop-enviroment-configuration/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)