So in this tutorial you are going to learn how to upgrade packages by using pub.dev website to upgrade your packages .
steps :
part one :
1- open your project with visual studio code , next you have to open integrated terminal in visual studio code .
2- check outdated package by using next CLI : flutter pub outdated
3- from outdated package list select any package name .
4- now open browser and open https://pub.dev website , past package name and search .
5- from package page , you have to click on install .
6- inside install , you are going to find CLI as you can see "flutter pub add "package name" .
7 - copy and past this CLI in integrated terminal in visual studio code .
Part Two:
1- use next command line in integrated terminal : flutter pub outdated
2- from the list you are going to see list of numbers .... check under latest filed and copy .
3- open pubspec.yaml file ... search about package name ... and change number .