更新/安装最新的 Flutter 包 (pubspec.yaml) [英] Update to/install latest Flutter packages (pubspec.yaml)

查看:56
本文介绍了更新/安装最新的 Flutter 包 (pubspec.yaml)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 android studio 项目中安装最新的 Flutter 包.

I want to install latest Flutter packages in my android studio project.

在 npm 中,npm install 自动安装最新的包,npm update 自动更新所有包.

In npm, npm install <package name> installs latest packages automatically and npm update updates all packages automatically.

有没有办法在 Flutter 中做到这一点?

Is there any way to do this in Flutter?

推荐答案

是的,可以更新现有的包.使用下面的颤振命令:

Yes it is possible to update existing packages. Use the flutter command below:

flutter pub 过时了

这是在 Dart 2.8 中引入的:

This was introduced in Dart 2.8:

从 Dart 2.8 开始,您可以使用 pub outdated,这是一种新工具,用于自动确定哪些依赖项需要更新到最新和最好的版本.

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.

这篇关于更新/安装最新的 Flutter 包 (pubspec.yaml)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆