Removing use of the css_colors package which is no longer used#13225
Removing use of the css_colors package which is no longer used#13225
Conversation
Fixes #11598 Note to reviewers: Do we still need/want this? --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Code Review
This pull request replaces the css_colors package with the english_words package across the documentation and example code. Key updates include modifying the pubspec.yaml dependencies, updating the example Dart implementation to display random word pairs, and revising the 'Using packages' guide to use english_words as the primary example. I have no feedback to provide.
|
Visit the preview URL for this PR (updated for commit 088f89c): https://flutter-docs-prod--pr13225-issue-12099-using-packages-cwo9rrvb.web.app |
|
Visit the preview URL for this PR (updated for commit 14ddb40): https://flutter-docs-prod--pr13225-issue-12099-using-packages-cwo9rrvb.web.app |
| To use this package: | ||
|
|
||
| 1. Create a new project called `cssdemo`. | ||
| 1. Create a new project called `wordsdemo`. |
There was a problem hiding this comment.
| 1. Create a new project called `wordsdemo`. | |
| 1. Create a new project called `words_demo`. |
| 1. Open `pubspec.yaml`, and add the `english_words` dependency: | ||
|
|
||
| ```yaml | ||
| dependencies: | ||
| flutter: | ||
| sdk: flutter | ||
| css_colors: ^1.0.0 | ||
| english_words: ^4.0.0 | ||
| ``` | ||
|
|
||
| 1. Run `flutter pub get` in the terminal, | ||
| or click **Get Packages** in VS Code. |
There was a problem hiding this comment.
Consider replacing these steps with a single one to just run dart pub add english_words. Simpler and easier to keep up to date.
| The [`english_words`][] package | ||
| contains a few thousand of the most used English words plus some utility functions. |
There was a problem hiding this comment.
| The [`english_words`][] package | |
| contains a few thousand of the most used English words plus some utility functions. | |
| The [`english_words`][] package contains a | |
| few thousand of the most used English words plus some utility functions. |
Fixes #12099