Skip to content

Commit

Permalink
Unify dart and flutter generation instructions (#1329)
Browse files Browse the repository at this point in the history
Unify dart and flutter generation instructions
  • Loading branch information
JAicewizard authored Jun 14, 2023
1 parent 1632d28 commit 288dbdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions json_serializable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ Map<String, dynamic> _$PersonToJson(Person instance) => <String, dynamic>{
Once you have added the annotations to your code you then need to run the code
generator to generate the missing `.g.dart` generated dart files.

With a Dart package, run `dart run build_runner build` in the package directory.

With a Flutter package, run `flutter pub run build_runner build` in your package
directory.
Run `dart run build_runner build` in the package directory.

# Annotation values

Expand Down
5 changes: 1 addition & 4 deletions json_serializable/tool/readme/readme_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ Building creates the corresponding part `example.g.dart`:
Once you have added the annotations to your code you then need to run the code
generator to generate the missing `.g.dart` generated dart files.

With a Dart package, run `dart run build_runner build` in the package directory.

With a Flutter package, run `flutter pub run build_runner build` in your package
directory.
Run `dart run build_runner build` in the package directory.

# Annotation values

Expand Down

0 comments on commit 288dbdb

Please sign in to comment.