📜  flutter sdk - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:41:15.426000             🧑  作者: Mango

Flutter SDK - Shell/Bash

Flutter is a popular open-source mobile application development framework created by Google. It allows developers to build apps for both iOS and Android platforms using a single codebase.

The Flutter SDK includes a powerful command-line tool called Flutter for interacting with the framework and other related functionalities. This command-line tool is built using the Dart programming language and can be executed from a terminal or command prompt window.

Installation

Before you can start using the Flutter command-line tool, you need to install the Flutter SDK on your machine. To do this, follow these steps:

  1. Download the Flutter SDK for your operating system from the official Flutter website.
  2. Extract the downloaded archive and move the flutter folder to a desired location.
  3. Add the Flutter platform-specific tooling to your environment's path variable.
export PATH="$PATH:<flutter-sdk-path>/bin"
Usage

Once you have installed the Flutter SDK, you can start using the Flutter command-line tool to run, debug, and test your Flutter applications. Here are some useful commands to get started:

  • flutter create <app-name> - Creates a new Flutter project in the specified directory.
  • flutter run - Runs the current Flutter project on your connected device or emulator.
  • flutter build - Builds the current Flutter project for release.
  • flutter doctor - Checks your environment and displays a report of the status of your Flutter installation.
  • flutter clean - Deletes all build output for the current project.
Conclusion

The Flutter SDK and its command-line tool provides developers with an efficient and effective way of building cross-platform mobile applications. By following the installation steps and learning some useful commands, you can start building your own Flutter applications in no time.