flutter linux helloword

1. 安装 snap
sudo apt install snapd
2. 安装 flutter
sudo snap install flutter --classic
3. 安装 vscode
4. vscode 安装 flutter 插件
5. 创建工程

vscode 按快捷键 ctrl + shift + p
输入flutter
选择 Flutter: New Project
选择 Application
选择 工程目录
输入项目名称 helloword

6. 运行项目

确保 vscode 状态栏选择 linux


飞书20220518-164023.png

在终端中输入,运行应用

flutter run ./lib/main.dart
飞书20220518-164229.png

你可能感兴趣的:(flutter linux helloword)