我想在我的 android studio 项目中安装最新的 Flutter 包。
在 npm 中,npm install <package name>
会自动安装最新的包,npm update
会自动更新所有包。
有没有办法在 Flutter 中做到这一点?
最佳答案
是的,可以更新现有的软件包。使用下面的 flutter 命令:flutter pub outdated
这是在 Dart 2.8 中引入的:
As of Dart 2.8, you can use
pub outdated
, a new tool for automatically determining which of your dependencies need to be updated to the latest and greatest versions.
关于android-studio - 更新/安装最新的 Flutter 包 (pubspec.yaml),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61708170/