Skip to content

Commit

Permalink
[flutter_lints] Replace "flutter pub add --dev" with "dev:" (#5260)
Browse files Browse the repository at this point in the history
This pull request is to replace `�dev` with `dev:`, as this is the newer way and is used in the Flutter documentation.
https://dart.dev/tools/pub/cmd/pub-add#dev-dependency
https://docs.flutter.dev/data-and-backend/serialization/json#setting-up-json_serializable-in-a-project
  • Loading branch information
tatsuyafujisaki committed Oct 30, 2023
1 parent fe4c86b commit 35b15de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/flutter_lints/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.1

* Replaces `flutter pub add --dev` with `dev:` in README.md.

## 3.0.0

* Updated `package:lints` dependency to version 3.0.0, with the following changes:
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_lints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package. Entities created before that version can use these lints by following
these instructions:

1. Depend on this package as a **dev_dependency** by running
`flutter pub add --dev flutter_lints`.
`flutter pub add dev:flutter_lints`.
2. Create an `analysis_options.yaml` file at the root of the package (alongside
the `pubspec.yaml` file) and `include: package:flutter_lints/flutter.yaml`
from it.
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_lints/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_lints
description: Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices.
repository: https://github.com/flutter/packages/tree/main/packages/flutter_lints
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_lints%22
version: 3.0.0
version: 3.0.1

environment:
sdk: ^3.0.0
Expand Down

0 comments on commit 35b15de

Please sign in to comment.