Does anyone have a solution for this?
I typed all the following commands in the terminal but nothing.
"flutter package get "
"flutter packages upgrade"
"flutter pub get"
"flutter pub add flutter_pin_code_fields".
I added "
flutter_pin_code_fields: ^2.2.0
I added "flutter_pin_code_fields: ^2.2.0" to the dependencies in File < pubspec.yaml > , saved and restarted the IDE, which is VScode.
2
Answers
If you add a package by this command
then you don’t need to do this manually in your file
pubspec.yaml
like thisAfter running a command or adding manually in
pubspec.yaml
, do this:In "pubspec.yaml": (manually)
In terminal:
dependencies
through this command: