Skip to content

Commit c6836ae

Browse files
authored
update example readme to use "dart run" over "pub run" (#1258)
`pub run` no longer works on the current Dart SDK, `dart` is the top level command to use.
1 parent 776df7c commit c6836ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Annotate your code with classes defined in
2020

2121
- See [`lib/example.g.dart`][example_g] for the generated file.
2222

23-
Run `pub run build_runner build` to generate files into your source directory.
23+
Run `dart run build_runner build` to generate files into your source directory.
2424

2525
```console
2626
> pub run build_runner build
@@ -32,7 +32,7 @@ Run `pub run build_runner build` to generate files into your source directory.
3232
[INFO] Build: Succeeded after 4687ms with 1 outputs
3333
```
3434

35-
_NOTE_: If you're using Flutter, replace `pub run` with
35+
_NOTE_: If you're using Flutter, replace `dart run` with
3636
`flutter pub run`.
3737

3838
[example]: lib/example.dart

0 commit comments

Comments
 (0)