Minimum Windows configuration requirements:

  • Windows 7 and later 64-bit operating systems;
  • With the IDE installed, you have at least 400MB of disk space left
  • If not Windows 10, install Windows PowerShell 5.0 or later
  • Git is installed on your computer

Download the Flutter SDK

  • Download all versions of Flutter SDK
  • Unzip the download of the Flutter SDK package, note: the package not in system disk such as C: \ Program Files \ etc directory.
  • Find flutter_console.bat in the unzipped file. Double-click to open the Flutter command panel, where you can execute Flutter commands. Of course, you can also execute the Flutter command in the CMD panel of your computer. This requires you to add a Flutter \bin to a system variable in the same way that you can add a Java environment variable.

Check that your development environment is ready to run FLUTTER

From the above Flutter command panel or the CMD panel of your computer, run the command Flutter doctor to scan your environment for the necessary things that are missing, as shown below:

The first exclamation point is because I don’t have a license for my Android SDK, but if you’re already developing Android apps in that environment, don’t worry about it. The second exclamation mark indicates that my computer is not currently connected to a working mobile device.

Install the Flutter and DART plug-ins in Android Studio

  • Go to File > Settings > Plugins in order
  • Click Browse Repositories to locate and install the Folders plugin. If prompted to install the Dart plugin, click OK
  • Finally, restart Android Studio

Update the Flutter SDK and libraries that the project relies on

Unlike the Android SDK, the Flutter SDK does not have a visual management panel, SDK Manager.exe. Updates to the Flutter SDK can only be made by using commands. There are currently four SDK channels available: stable, beta, development, and MSTER. We can use the stable channel SDK. If you want to know which channel your environment is in, you can run the following command:

flutter channel
Copy the code

The results are shown below:

As shown in the figure above, my current SDK is in the stable channel. In case you accidentally delete the SDK of other channels, how do you switch to the stable channel? Just run the following command:

flutter channel stable
flutter upgrade
Copy the code

Download and update the Flutter SDK and the libraries that your project depends on in the stable channel. Once you update the channel, be sure to update the SDK and the libraries as well.

Yaml. This file is generated when you create a flutter project. This file is similar to the build.gradle file in your Android app. The basic version information of the project and the library packages it depends on are written in this file:

Startup_name Description: A new Flutter application. Version: 1.0.0+1 environment: SDK:"> = 2.1.0 < 3.0.0"> > < span style = "font-size: 14px! Important; uses-material-design:true
Copy the code

Update command one: flutter upgrade

We mentioned above that this command updates the flutter SDK itself in your current channel, as well as library packages that your existing project relies on (declared in the dependencies: node of the pubspec.yaml file).

Update command 2: flutter pub get

This command will not download and update the Flutter SDK itself. It will only download libraries that your project depends on. For example, if you pull or clone a project, you already have the Flutter SDK locally. There is no need to re-download and update the Flutter SDK, but this project relies on other libraries that are not available in your local environment. I think you can run this command.

Update command three: flutter pub upgrade

This command also does not download and update the flutter SDK. The flutter pub get command downloads the dependent libraries, while the flutter pub upgrade command updates the dependent libraries.

Now that the Flutter environment is set up, we can start creating our first Flutter application in the next chapter.