📜  Flutter windows - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:30:48.676000             🧑  作者: Mango

Flutter Windows - Shell-Bash

Flutter is a mobile app SDK for building high-performance, high-fidelity, apps for iOS and Android, but it can also be used for web and desktop applications. Flutter is available for different operating systems like Windows, Linux, and Mac. In this article, we will discuss Flutter installation on the Windows operating system specifically on Bash Shell.

Requirements

Before installing Flutter we need to make sure our system meets the following requirements:

  • Operating Systems: Windows 7 or later (64-bit versions)
  • Disk Space: 400 MB (does not include disk space for the IDE/tools).
  • Tools: Git
  • Processor: Intel Pentium 4 or later.
Installation
Step 1: Download Git for Windows

Go to the Git download page and download Git for Windows installer: https://gitforwindows.org/

Step 2: Install Git for Windows

Run the downloaded Git for Windows installer and follow the prompts to install.

Step 3: Download Flutter SDK

Go to the Flutter download page (https://flutter.dev/docs/get-started/install/windows) and click on the Windows tab to download the Flutter SDK.

Step 4: Extract Flutter SDK file

Extract the downloaded Flutter SDK zip file to the desired installation location. Avoid directory paths with spaces, such as C:\Program Files.

Step 5: Update environment variables

Add the Flutter SDK path to your system environment variables.

  • From the Start search bar, enter ‘env’ and select ‘Edit the system environment variables’. (If you don't have administrator access to the machine, you may not be able to perform this step.)

  • Click the ‘Environment Variables’ button.

  • Under the ‘User Variables’ click on ‘New’ and add the following:

    • Variable Name: Flutter
    • Variable Value: <flutter_install_dir>\flutter

    Replace <flutter_install_dir> with the directory path where you extracted the Flutter SDK.

  • Under the System variables section, select Path and click Edit. Add the following:

    • New: %USERPROFILE%\AppData\Local\Microsoft\WindowsApps
    • New: <flutter_install_dir>\flutter\bin

    Again, replace <flutter_install_dir> with the directory path where you extracted the Flutter SDK.

###Step 6: Verify Flutter installation

Open Git Bash and enter the following command to verify Flutter installation:

flutter doctor

This command will check and report whether there are any necessary dependencies you need to install to complete the installation process.

Conclusion

In conclusion, Flutter is a powerful cross-platform mobile application development SDK that has been gaining popularity in recent years. Installing it on a Windows operating system is relatively easy and can be accomplished using the steps outlined above. Once you are up and running, you can start building your first app with Flutter. Happy coding!