Open the pubspec. yaml file located inside the app folder, and add css_colors: under dependencies .
Read moreHow do you get Pubspec yaml in Flutter?
Every Flutter project includes a pubspec. yaml file, often referred to as the pubspec. A basic pubspec is generated when you create a new Flutter project . It’s located at the top of the project tree and contains metadata about the project that the Dart and Flutter tooling needs to know.
Read moreWhat is Pubspec yaml file in Flutter?
The pubspec. yaml file is transversal to all apps and packages – it is where we add metadata to our project, stipulate the Dart and Flutter SDK constraints, manage the dependencies and also set Flutter-specific configurations.
Read moreHow do I open Pubspec assist?
Simply open the Command Palette (by default, Ctrl+Shift+P on Windows, ⌘+Shift+P on Mac) and search for “Pubspec Assist” .4 Kas 2021
Read moreWhat is Pubspec lock?
lock file lets you test your package against the latest compatible versions of its dependencies . For application packages, we recommend that you commit the pubspec. lock file. Saving pubspec. lock ensures that everyone working on the app uses the exact same versions.
Read moreHow do I fix Pubspec yaml?
How to Fix “No pubspec.
Read moreHow do I add a package to Pubspec yaml?
Name the package dependencies
Read more