Install and configure Flutter on Windows

1. Prerequisites

  • Operating system: Windows 10 or higher (x86-64 based 64-bit operating system).
  • Disk space: At least 1.64 GB of space should be available in addition to installing the IDE and some tools.
  • Settings: Developer mode must be enabled on Windows 10/11.
  • Tools: To use Flutter normally in your development environment, it depends on the following tools:
    Windows PowerShell 5.0 or higher (pre-installed in Windows 10)
    Git for Windows 2.x, and check the From Windows Command Prompt Symbol using Git options.
    If the Windows version of Git is already installed, make sure you can execute git commands directly from the command prompt or PowerShell.

2. Obtain Flutter SDK

This is downloaded based on the latest SDK provided by Flutter’s official website.
After decompression, place it according to its location, such as (D:\flutter)

Be careful
not to put Flutter in a path with special characters or spaces.
Do not install Flutter in a folder that requires high permissions, such as C:\Program Files\.

3. Whether the test is successful

Method 1: Open the unzipped folder, find it flutter_console.batand double-click to open it.

enterflutter doctor

Insert image description here

Method 2: Open with Windows command window

If you want to open it in the Windows command window, you need to configure the environment variables.
Open the path in the system variables and find the bin directory in flutter.
Insert image description here

Open the command prompt, enter flutter
Insert image description here
to check the flutter dependency
input flutter doctorto see what dependencies are missing, and the download address has been provided.
Insert image description here

4. Set up the editor

Because the Windows system can only develop flutter Android applications, we need to download the Android IDE

There is a download address at the back of the first one Xin the picture above. The address given in the picture above cannot be opened. You can change it to Google's
https://developer.android.google.cn/studio
Insert image description here
and place it according to your needs
. If this problem occurs, stop and open it again. Just install the package
Insert image description here

Select custom installation and continue to next. At this step , continue to
Insert image description here
the location you want to install . In this step, select accept all, and then finish. The editor page will appear at the end.
Insert image description here

Insert image description here

Insert image description here

For specific installation instructions, please refer to https://www.yii666.com/blog/56314.html?action=onAll

Finally this page appears
Insert image description here

Guess you like

Origin blog.csdn.net/2201_75499330/article/details/131315951