1). Flutter web
2). Flutter web doc
3). 搭建环境
- 下载Flutter SDK
git clone https://github.com/flutter/flutter.git -b beta
- 配置flutter环境变量
D:\flutter\bin
- 下载Dart SDK(在控制台执行)
flutter
- 配置运行web
# Enable or disable Flutter for web.This setting will take effect on the master, dev, and beta channels.
flutter config --enable-web
- 检测chrome
flutter doctor
- 创建web页面
# 新建web项目
flutter create myweb
# 进入创建的项目中
cd myweb
# 运行
flutter run -d chrome
4). 生成发布版本
flutter build web
- 生成文件路径
bulid/web/