Install Flutter on Windows 10/11

Tiempo de lectura: 2 minutos

html
Copy code
Reading Time: 3 minutes

Hello, today we are going to see how we can install the Flutter environment on Windows.

The first thing we need to do is go to the official Flutter website and download the Flutter zip file:

https://docs.flutter.dev/get-started/install/windows

Once downloaded, unzip it to the desired location. In my case:

c:/flutter

*It is recommended not to install in program files or paths with special characters.

After installation, we need to add the path to our environment variables. To do this, go to the start menu and type:

env

Click on Edit the system environment variables

Once the window opens, click on Environment Variables…

Go to the PATH environment variable:

Click on Edit…

Click on New and add:

C:\flutter\bin

Click OK.

Open a bash or cmd window and type the command:

flutter --version

And you’ll see the Flutter version:

flutter doctor

You’ll see the following:

In this example, there are some missing dependencies.

We can start fixing them. For example, to install Android, first, install Android Studio and download all the packages. Then, install cmdline-tools from the Android Studio SDK Manager.

Install Android Studio: https://developer.android.com/studio

Install Chrome: https://www.google.com/intl/es_es/chrome/

Install VSCode: https://code.visualstudio.com/

Install Visual Studio develop for Windows: https://visualstudio.microsoft.com/downloads/

Install cmdline-tools:

  • Open Android Studio.
  • Click on more actions and then SDK Manager.
  • Choose Android SDK and SDK Tools

Then, select Android SDK Command-line Tools (latest)

  • Accept Android Studio licenses:

To do this, run this command:

flutter doctor --android-licenses

And accept the licenses.

Now, run again:

flutter doctor

And everything should be configured.

html
Copy code

Now, to continue with the installation, let’s run Flutter Doctor to check if everything is set up correctly:

flutter doctor

You’ll see the following:

In this example, there are some missing dependencies.

We can start fixing them. For example, to install Android, first, install Android Studio and download all the packages. Then, install cmdline-tools from the Android Studio SDK Manager.

Install Android Studio: https://developer.android.com/studio

Install Chrome: https://www.google.com/intl/es_es/chrome/

Install VSCode: https://code.visualstudio.com/

Install Visual Studio develop for Windows: https://visualstudio.microsoft.com/downloads/

Install cmdline-tools:

  • Open Android Studio.
  • Click on more actions and then SDK Manager.
  • Choose Android SDK and SDK Tools

Then, select Android SDK Command-line Tools (latest)

  • Accept Android Studio licenses:

To do this, run this command:

flutter doctor --android-licenses

And accept the licenses.

Now, run again:

flutter doctor

And everything should be configured.

html
Copy code

Now that Flutter is set up, you can start developing cross-platform mobile applications using this powerful framework. Happy coding!

Leave a Comment