Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update to/install latest Flutter packages (pubspec.yaml)

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

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

Is there any way to do this in Flutter?

like image 528
suyashsingh234 Avatar asked Dec 08 '22 10:12

suyashsingh234


1 Answers

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

flutter pub outdated

This was introduced in 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.

like image 134
V.N Avatar answered Jan 15 '23 04:01

V.N