Run flutter packages upgrade
from the root of your project to get the latest versions of all the dependencies listed in the pubspec.yaml file
To upgrade both the Flutter SDK and your packages, use the flutter upgrade
command from the root of your app.