Flutter开发的一些知识点记录1
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
flutter build ios --no-sound-null-safety
Flutter 升级到指定版本——版本升级与回退
相关命令:
查看版本: flutter --version
检查环境:flutter doctor
查看渠道:flutter channel
切换渠道(stable, beta, dev, master):flutter channel stable
升级到最新版本:flutter upgrade
升级到指定版本:flutter upgrade v2.2.3
回退到指定版本:flutter downgrade v2.0.3
也可通过git回退版本:
- 进入 flutter github 找到要回退的版本
- cd进入到存放flutter sdk目录,运行回退指令 git reset --hard [commit_id]
例如-> git reset --hard 4d7946a68d26794349189cf21b3f68cc6fe61dcb - 查看flutter版本
查看版本-> flutter doctor 或者 flutter --version
Dart语法简介
参考资料
- https://www.dartlang.org/guides/language/language-tour 【官方文档】
- http://wiki.jikexueyuan.com/project/dart-language-tour/classes.html 【极客学院】
- https://www.jianshu.com/p/3d927a7bf020 【author:AWeiLoveAndroid】
- https://www.jianshu.com/p/a7cc623132b0 【author:soojade】
- https://www.jianshu.com/p/78d317b2ea79 【author:优腾爱乐】
Copyright © 2015 Powered by MWeb, 豫ICP备09002885号-5