C:srcflutterbinflutter.bat --no-color pub get
Resolving dependencies...
flutter_lints 2.0.3 (3.0.1 available)
lints 2.1.1 (3.0.0 available)
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.10.0 (1.11.0 available)
web 0.3.0 (0.4.0 available)
Got dependencies!
5 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Process finished with exit code 0
I have tried to pub get
the dependencies flutter in Visual Studio Code.
2
Answers
This solution involves a few steps:
flutter_lints
from^2.0.1
to^3.0.1
.flutter pub get
. Now you should have only the warnings related toweb
,meta
andmaterial_color_utilities
.flutter update-packages --force-upgrade
. This should fixweb
&meta
versions.material_color_utilities
is hard coded influtter_test
dependencies and already updated onmain
, so updating Flutter in the next release it should be fixed. (reference: https://github.com/flutter/flutter/issues/139457)1.Open your directory and run
flutter pub outdated
2.Run
flutter pub upgrade --major-versions