xxxxxxxxxx
# Go to `pubspec.yaml` and find `dependencies`
# Add your package from https://pub.dev/ like this:
dependencies:
shared_preferences: 2.0.17
# Run to actually install it:
flutter pub get
xxxxxxxxxx
Just follow this link : https://flutter.dev/docs/get-started/install
And follow each and every step
xxxxxxxxxx
where flutter dart
C:\path-to-flutter-sdk\bin\flutter
C:\path-to-flutter-sdk\bin\flutter.bat
C:\path-to-dart-sdk\bin\dart.exe :: this should go after `C:\path-to-flutter-sdk\bin\` commands
C:\path-to-flutter-sdk\bin\dart
C:\path-to-flutter-sdk\bin\dart.bat