flutter入门

创建时间:2022-12-28 11:00:16
栏目:flutter
标签:flutter

首先,下载flutter sdk,下载地址https://flutter.cn/docs/development/tools/sdk/releases

下载后解压得到flutter文件夹。配置环境变量 FLUTTER_HOME,我的是D:\flutter。然后在PATH中加入%FLUTTER_HOME%\bin, 在终端中运行flutter -help,测试环境变量是否配置成功。

运行flutter doctor进行诊断。诊断前最好先安装chrome和android studio。

运行flutter devices可以查看可用的设备。

创建项目flutter create my_app

进入到创建的项目cd my_app,运行flutter config --enable-web开启web支持,再运行flutter run -d chrome --web-renderer html即可在chrome中调试。

flutter包搜索地址https://pub.flutter-io.cn/

json转dart https://caijinglong.github.io/json2dart/index.html

dart语言基础 https://dart.dev/guides

flutter类文档 https://api.flutter-io.cn/index.html

联系我们

微信号:shidaping023