Flutter installation and development environment configuration

This article describes how to install flutter and how to configure the development environment of flutter.

1. Flutter installation

Visit the official website address https://docs.flutter.dev/development/tools/sdk/releases to download the latest version of the Flutter SDK package.

Unzip the installation package zip to the path where you want to install the Flutter SDK (eg: D:\flutter_windows_3.7.5-stable\flutter; be careful not to install flutter to a path that requires some high permissions such as C:\Program Files\).

2. Environment variable configuration

If you want to run flutter commands on the Windows system's own command line, you need to add the following environment variables to the user PATH:

  • Go to "Advanced System Settings > Environment Variables":

  • Check for an entry named "Path" under "User Variables":

  • If the entry exists, append the full path to flutter\bin, using ; as a separator.

  • If the entry does not exist, create a new user variable Path and set the full path to flutter\bin as its value.

Execute flutter --version in the window command line cmd. If the correct version number is displayed, the configuration is successful.

3. Plug-ins used in vscode

  1. Flutter plugin: open vscode, enter the app store, and search for flutter.

  1. dart plug-in: enter the vscode app store and search for dart.

  1. Flutter Widget Snippets plugin


New Era Migrant Workers

Guess you like

Origin blog.csdn.net/sg_knight/article/details/129487871
Recommended