How do I flutter packages to the pubspec.yaml file without going directly to the pubspec.yaml file.
I want to be able to add packages without leaving the current page I am working on.
I have seen this done in several tutorials and I want to know how it is done.
There are two ways of doing auto import in vscode:
1. To setup in Pubspec Assist vscode use the instructions below:
Nb:
eg: bloc, provider, http
hope this helps
2. To use Terminal
flutter pub add <package name>eg:
flutter pub add blocflutter pub upgrade <package name><br>eg.
flutter pub upgrade blocthis second method does not bring up a dialog but also does the same auto import
Have a nice day