mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

This is waiting on - https://github.com/flutter/flutter/pull/148777 - https://github.com/flutter/flutter/pull/148790 After this PR lands, there will likely be 1-2 more clean up PRs, after which the migration will be done! --- This moves the remaining wiki pages as planned in [flutter.dev/go/migrate-flutter-wiki-spreadsheet](https://docs.google.com/spreadsheets/d/1x65189ZBdNiLRygpUYoU08pwvXD4M-Z157c6pm8deGI/edit?usp=sharing) It also adds the team labels to the label bot for future PRs. Changes to the content were only updating cross links, or links to refer to the main branch rather than master. Remaining links to the wiki will be updated once all other pages have finished moving, they still work in the meantime. Part of https://github.com/flutter/flutter/issues/145009
12 lines
664 B
Markdown
12 lines
664 B
Markdown
To run an example, switch to that example's directory, and use `flutter run`.
|
|
Make sure you have an emulator running, or a device connected over USB and
|
|
debugging enabled on that device.
|
|
|
|
* `cd examples/hello_world`
|
|
* `flutter run`
|
|
|
|
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
|
|
example, to run the `widgets/spinning_square.dart` example in the [examples/layers](https://github.com/flutter/flutter/tree/main/examples/layers)
|
|
directory on a connected Android device, from that directory you would run:
|
|
`flutter run -t widgets/spinning_square.dart` |