Flutter Mac上使用VSCode支持Flutter开发
# 安装Flutter SDK
git clone -b beta https://github.com/flutter/flutter.git
export PATH="$PWD/flutter/bin:$PATH"
# 安装Dart SDK
curl -s https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.4/sdk/dartsdk-macos-x64-release.zip > dartsdk-macos-x64-release.zip
unzip dartsdk-macos-x64-release.zip
export PATH="$PWD/dart-sdk/bin:$PATH"
# 安装必要的包和插件
flutter precache
# 安装VSCode和Flutter插件
brew install --cask visual-studio-code
# 打开VSCode并安装Flutter插件
open -a Visual\ Studio\ Code
在Mac上使用VSCode进行Flutter开发,你需要安装Flutter SDK和Dart SDK,并配置环境变量。然后,你可以使用VSCode编写和运行Flutter应用程序。上述脚本提供了一个简化的安装和配置过程。
评论已关闭