Reputation: 1
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.
Upvotes: 0
Views: 143
Reputation: 206
dependencies:
package_name: vesion
dev_dependencies:
package_name: version
dependencies
through this command:flutter pub add package_name
flutter clean
flutter pub get
flutter run
Upvotes: 0
Reputation: 1672
If you add a package by this command
flutter pub add flutter_pin_code_fields
then you don't need to do this manually in your file pubspec.yaml
like this
dependencies:
flutter_pin_code_fields: ^2.2.0
After running a command or adding manually in pubspec.yaml
, do this:
flutter clean
flutter pub get
flutter run
Upvotes: 0