📅  最后修改于: 2023-12-03 15:30:48.676000             🧑  作者: Mango
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.
Before installing Flutter we need to make sure our system meets the following requirements:
Go to the Git download page and download Git for Windows installer: https://gitforwindows.org/
Run the downloaded Git for Windows installer and follow the prompts to install.
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.
Extract the downloaded Flutter SDK zip file to the desired installation location. Avoid directory paths with spaces, such as C:\Program Files.
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:
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:
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.
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!