30/10/2021
How to Install Dart Packages in Flutter Project to use them as Libraries.
- Download Package
By adding dependencies:
1- Open pubspec.yaml file of your project.
2- Paste ": " under dependencies session.
3- Run "Get Dependencies".
By using Command-Prompt:
1- Open Command-Prompt-
2- Run "$ flutter pub add ".
- After completing one of the above two processes "Import-Package".
By using command
import "package: "