Dart和Flutter环境配置

2023/03/19 Flutter 共 704 字,约 3 分钟
Bob.Zhu

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

flutter-sdk

创建项目

Dart测试项目

create-dart-project dart-project-main

Flutter测试项目

create-flutter-project flutter-project-main

参考资料

文档信息

Search

    Table of Contents