'Flutter provider installation error while running pub get

I am trying to install provider(flutter package) but getting an error message when trying to run $ pub get :

enter image description here Provider Package installation error:



Solution 1:[1]

update your flutter sdk which is greater then 1.15.17, your current version of flutter SDK. then try to install the flutter package again..

The latest Stable release of flutter is v1.17.1 . So just update your flutter and then add the your desired flutter package..

Solution 2:[2]

you need to update your flutter sdk with the command 'flutter upgrade', and only then try to install the provider package again.

try to always keep updated

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 juan larrain