2018-07-26 00:47:24 +02:00
|
|
|
# flutter
|
|
|
|
|
2019-02-25 00:56:24 +01:00
|
|
|
> Google's free, open source, and cross-platform mobile app SDK.
|
2019-06-07 11:58:14 +01:00
|
|
|
> More information: <https://github.com/flutter/flutter/wiki/The-flutter-tool>.
|
2018-07-26 00:47:24 +02:00
|
|
|
|
2022-10-21 11:25:25 +08:00
|
|
|
- Initialize a new Flutter project in a directory of the same name:
|
2018-07-26 00:47:24 +02:00
|
|
|
|
2022-10-21 11:25:25 +08:00
|
|
|
`flutter create {{project_name}}`
|
2018-07-26 00:47:24 +02:00
|
|
|
|
2020-10-28 19:03:05 +01:00
|
|
|
- Check if all external tools are correctly installed:
|
2018-07-26 00:47:24 +02:00
|
|
|
|
|
|
|
`flutter doctor`
|
2020-09-04 20:58:56 +02:00
|
|
|
|
2020-09-05 13:45:28 +02:00
|
|
|
- List or change Flutter channel:
|
2020-09-04 20:58:56 +02:00
|
|
|
|
2020-09-05 13:45:28 +02:00
|
|
|
`flutter channel {{stable|beta|dev|master}}`
|
2020-09-04 21:05:30 +02:00
|
|
|
|
2020-09-04 21:07:01 +02:00
|
|
|
- Run Flutter on all started emulators and connected devices:
|
2020-09-04 21:05:30 +02:00
|
|
|
|
|
|
|
`flutter run -d all`
|
2020-10-12 22:39:07 +01:00
|
|
|
|
|
|
|
- Run tests in a terminal from the root of the project:
|
|
|
|
|
|
|
|
`flutter test {{test/example_test.dart}}`
|
2020-10-28 19:03:05 +01:00
|
|
|
|
|
|
|
- Build a release APK targeting most modern smartphones:
|
|
|
|
|
2020-12-11 21:25:47 +00:00
|
|
|
`flutter build apk --target-platform {{android-arm}},{{android-arm64}}`
|
2022-10-21 11:25:25 +08:00
|
|
|
|
|
|
|
- Display help about a specific command:
|
|
|
|
|
|
|
|
`flutter help {{command}}`
|