Skip to content

Commit 6909248

Browse files
authored
Replace pub run usages with dart run (#2777)
Following up on dart-lang/pub#4737, this PR replaces deprecated `pub run` commands with `dart run`.
1 parent 45e2246 commit 6909248

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

add_to_app/books/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ page.
3838
* If the `schema.dart` is modified, the generated classes can be updated with
3939

4040
```bash
41-
flutter pub run pigeon --input pigeon/schema.dart \
41+
dart run pigeon --input pigeon/schema.dart \
4242
--dart_out lib/api.dart \
4343
--objc_header_out ../ios_books/IosBooks/api.h \
4444
--objc_source_out ../ios_books/IosBooks/api.m \

add_to_app/books/flutter_module_books/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ in `pigeon/schema.dart` is updated, the generated classes can also be re-
1616
generated using:
1717

1818
```shell
19-
flutter pub run pigeon --input pigeon/schema.dart \
19+
dart run pigeon --input pigeon/schema.dart \
2020
--dart_out lib/api.dart \
2121
--objc_header_out ../ios_books/IosBooks/api.h \
2222
--objc_source_out ../ios_books/IosBooks/api.m \

add_to_app/books/flutter_module_books/run_pigeon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
flutter pub run pigeon --input pigeon/schema.dart \
2+
dart run pigeon --input pigeon/schema.dart \
33
--dart_out lib/api.dart \
44
--objc_header_out ../ios_books/IosBooks/api.h \
55
--objc_source_out ../ios_books/IosBooks/api.m \

desktop_photo_search/fluent_ui/tool/grind.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Future<void> generateJsonBindings() async => _logProcessOutput(
3232

3333
@Task()
3434
Future<void> watch() async => _logProcessOutput(
35-
Process.start('flutter', ['pub', 'run', 'build_runner', 'watch']),
35+
Process.start('dart', ['run', 'build_runner', 'watch']),
3636
);
3737

3838
@Task()

desktop_photo_search/material/tool/grind.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Future<void> generateJsonBindings() async => _logProcessOutput(
3232

3333
@Task()
3434
Future<void> watch() async => _logProcessOutput(
35-
Process.start('flutter', ['pub', 'run', 'build_runner', 'watch']),
35+
Process.start('dart', ['run', 'build_runner', 'watch']),
3636
);
3737

3838
@Task()

game_template/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ lib
6969

7070
The state management approach is intentionally low-level. That way, it's easy to
7171
take this project and run with it, without having to learn new paradigms, or having
72-
to remember to run `flutter pub run build_runner watch`. You are,
72+
to remember to run `dart run build_runner watch`. You are,
7373
of course, encouraged to use whatever paradigm, helper package or code generation
7474
scheme that you prefer.
7575

@@ -522,7 +522,7 @@ To update the launcher icon, first change the files
522522
Then, run the following:
523523

524524
```bash
525-
flutter pub run flutter_launcher_icons:main
525+
dart run flutter_launcher_icons:main
526526
```
527527

528528
You can [configure](https://github.com/fluttercommunity/flutter_launcher_icons#book-guide)

pedometer/ffigen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: PedometerBindings
33
description: "Bindings for CM pedometers"
44
language: objc

0 commit comments

Comments
 (0)