Skip to content

Commit 288dbdb

Browse files
authored
Unify dart and flutter generation instructions (#1329)
Unify dart and flutter generation instructions
1 parent 1632d28 commit 288dbdb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Diff for: json_serializable/README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ Map<String, dynamic> _$PersonToJson(Person instance) => <String, dynamic>{
7575
Once you have added the annotations to your code you then need to run the code
7676
generator to generate the missing `.g.dart` generated dart files.
7777

78-
With a Dart package, run `dart run build_runner build` in the package directory.
79-
80-
With a Flutter package, run `flutter pub run build_runner build` in your package
81-
directory.
78+
Run `dart run build_runner build` in the package directory.
8279

8380
# Annotation values
8481

Diff for: json_serializable/tool/readme/readme_template.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ Building creates the corresponding part `example.g.dart`:
3535
Once you have added the annotations to your code you then need to run the code
3636
generator to generate the missing `.g.dart` generated dart files.
3737

38-
With a Dart package, run `dart run build_runner build` in the package directory.
39-
40-
With a Flutter package, run `flutter pub run build_runner build` in your package
41-
directory.
38+
Run `dart run build_runner build` in the package directory.
4239

4340
# Annotation values
4441

0 commit comments

Comments
 (0)