Commit c832aff1 authored by Devon Carew's avatar Devon Carew

Merge pull request #1957 from devoncarew/rename_in_readmes

rename some flutter command references in readmes
parents 6a6b6539 04eee82d
...@@ -48,17 +48,17 @@ Running the examples ...@@ -48,17 +48,17 @@ Running the examples
To run an example with a prebuilt binary from the cloud, switch to that To run an example with a prebuilt binary from the cloud, switch to that
example's directory, run `pub get` to make sure its dependencies have been example's directory, run `pub get` to make sure its dependencies have been
downloaded, and use `flutter start`. Make sure you have a device connected over downloaded, and use `flutter run`. Make sure you have a device connected over
USB and debugging enabled on that device. USB and debugging enabled on that device.
* `cd examples/hello_world; flutter start` * `cd examples/hello_world; flutter run`
You can also specify a particular Dart file to run if you want to run an example You can also specify a particular Dart file to run if you want to run an example
that doesn't have a `lib/main.dart` file using the `-t` command-line option. For that doesn't have a `lib/main.dart` file using the `-t` command-line option. For
example, to run the `tabs.dart` example in the [examples/widgets](examples/widgets) example, to run the `tabs.dart` example in the [examples/widgets](examples/widgets)
directory on a connected Android device, from that directory you would run: directory on a connected Android device, from that directory you would run:
* `flutter start -t tabs.dart` * `flutter run -t tabs.dart`
When running code from the examples directory, any changes you make to the When running code from the examples directory, any changes you make to the
example code, as well as any changes to Dart code in the example code, as well as any changes to Dart code in the
...@@ -169,7 +169,7 @@ engine using the `flutter test --debug` command. To run one of the ...@@ -169,7 +169,7 @@ engine using the `flutter test --debug` command. To run one of the
examples on your device using your locally built engine, use the examples on your device using your locally built engine, use the
`--debug` option to the `flutter` tool: `--debug` option to the `flutter` tool:
* `flutter start --debug` * `flutter run --debug`
If you want to test the release version instead of the debug version, If you want to test the release version instead of the debug version,
use `--release` instead of `--debug`. use `--release` instead of `--debug`.
......
...@@ -45,7 +45,7 @@ Future<double> test(String tracesDir, String projectPath, int runNumber) async { ...@@ -45,7 +45,7 @@ Future<double> test(String tracesDir, String projectPath, int runNumber) async {
String tracePath = "${tracesDir}/trace_$runNumber.json"; String tracePath = "${tracesDir}/trace_$runNumber.json";
runWithLoggingSync([ runWithLoggingSync([
'flutter', 'flutter',
'start', 'run',
'--no-checked', '--no-checked',
'--trace-startup' '--trace-startup'
], workingDirectory: projectPath); ], workingDirectory: projectPath);
...@@ -84,7 +84,7 @@ main(List<String> args) async { ...@@ -84,7 +84,7 @@ main(List<String> args) async {
String traces_dir = '/tmp'; String traces_dir = '/tmp';
List<double> times = []; List<double> times = [];
print("Profiling startup using flutter start --trace-startup."); print("Profiling startup using flutter run --trace-startup.");
print("Measuring from first trace event to completion of first frame upload."); print("Measuring from first trace event to completion of first frame upload.");
print("aka NativeViewGLSurfaceEGL:RealSwapBuffers.\n"); print("aka NativeViewGLSurfaceEGL:RealSwapBuffers.\n");
print("NOTE: If device is not on/unlocked tracing may fail.\n"); print("NOTE: If device is not on/unlocked tracing may fail.\n");
......
Flutter Examples Flutter Examples
================ ================
This directory contains several examples of using Flutter. Each of these is an This directory contains several examples of using Flutter. Each of these is an
individual Dart application package. individual Dart application package.
To run a sample with the `flutter` tool, run `pub get` inside its directory, To run a sample with the `flutter` tool, run `pub get` inside its directory,
then run `flutter start`. (See the then run `flutter run`. (See the
[getting started guide](https://flutter.io/getting-started/) to install [getting started guide](https://flutter.io/getting-started/) to install
the `flutter` tool.) the `flutter` tool.)
Available examples include: Available examples include:
- *Hello, world.* The [hello world app](hello_world) is a basic app that shows - **Hello, world** The [hello world app](hello_world) is a basic app that shows
the text "hello, world." the text "hello, world."
- *Stocks.* The [stocks app](stocks) is an example of a typical mobile app - **Stocks** The [stocks app](stocks) is an example of a typical mobile app
built using Flutter. The app shows a list of all the stocks in the NASDAQ. built using Flutter. The app shows a list of all the stocks in the NASDAQ.
- *Widgets.* The [widget apps](widgets) demonstrate a number of Flutter widgets - **Widgets** The [widget apps](widgets) demonstrate a number of Flutter widgets
so you can experiment with them in a simple container. There is no main.dart so you can experiment with them in a simple container. There is no main.dart
in this directory because each file is a standalone sample. To run a in this directory because each file is a standalone sample. To run a
particular file, use `flutter start -t filename.dart`. particular file, use `flutter run -t filename.dart`.
...@@ -18,5 +18,5 @@ Flutter's layered architecture. ...@@ -18,5 +18,5 @@ Flutter's layered architecture.
To run each example, use the `-t` argument to the `flutter` tool: To run each example, use the `-t` argument to the `flutter` tool:
``` ```
flutter start -t widgets/spinning_square.dart flutter run -t widgets/spinning_square.dart
``` ```
...@@ -4,7 +4,7 @@ Small examples of the Flutter widget framework ...@@ -4,7 +4,7 @@ Small examples of the Flutter widget framework
To run these, open a terminal in this directory and use the following command: To run these, open a terminal in this directory and use the following command:
```bash ```bash
flutter start --checked -t foo.dart flutter run -t foo.dart
``` ```
...where `foo.dart` is the file you want to run. ...where `foo.dart` is the file you want to run.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment