From 288dbdb915481555c8dc7a73d3820d992a5b8ab8 Mon Sep 17 00:00:00 2001 From: Jaap Aarts Date: Wed, 14 Jun 2023 22:45:23 +0200 Subject: [PATCH] Unify dart and flutter generation instructions (#1329) Unify dart and flutter generation instructions --- json_serializable/README.md | 5 +---- json_serializable/tool/readme/readme_template.md | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/json_serializable/README.md b/json_serializable/README.md index 5e7498540..cb1eec619 100644 --- a/json_serializable/README.md +++ b/json_serializable/README.md @@ -75,10 +75,7 @@ Map _$PersonToJson(Person instance) => { 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 diff --git a/json_serializable/tool/readme/readme_template.md b/json_serializable/tool/readme/readme_template.md index d8de00352..79ac1c7dd 100644 --- a/json_serializable/tool/readme/readme_template.md +++ b/json_serializable/tool/readme/readme_template.md @@ -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