snippetbashTip
flutter — Google's free, open source, and cross-platform mobile app SDK. Some subcommands such as `pub` have t
Viewed 0 times
commandsourceandclifluttergooglefreeopen
Problem
How to use the
flutter command: Google's free, open source, and cross-platform mobile app SDK. Some subcommands such as pub have their own usage documentation. More information: <https://github.com/flutter/flutter/wiki/The-flutter-tool>.Solution
flutter — Google's free, open source, and cross-platform mobile app SDK. Some subcommands such as pub have their own usage documentation. More information: <https://github.com/flutter/flutter/wiki/The-flutter-tool>.Initialize a new Flutter project in a directory of the same name:
flutter create {{project_name}}Check if all external tools are correctly installed:
flutter doctorList or change Flutter channel:
flutter channel {{stable|beta|dev|master}}Run Flutter on all started emulators and connected devices:
flutter run -d allRun tests in a terminal from the root of the project:
flutter test {{test/example_test.dart}}Build a release APK targeting most modern smartphones:
flutter build apk --target-platform {{android-arm}},{{android-arm64}}Delete the
build and .dart_tool directories:flutter cleanDisplay help about a specific command:
flutter help {{command}}Code Snippets
Initialize a new Flutter project in a directory of the same name
flutter create {{project_name}}Check if all external tools are correctly installed
flutter doctorList or change Flutter channel
flutter channel {{stable|beta|dev|master}}Run Flutter on all started emulators and connected devices
flutter run -d allRun tests in a terminal from the root of the project
flutter test {{test/example_test.dart}}Context
tldr-pages: common/flutter
Revisions (0)
No revisions yet.