0% found this document useful (0 votes)
3 views4 pages

Install Flutter Manually

This document provides a step-by-step guide for manually installing and setting up the Flutter SDK on a Windows device. It includes instructions for downloading prerequisite software, extracting the SDK, adding it to the PATH environment variable, and validating the setup. Users are advised to consider using an IDE with Flutter support for a better development experience.

Uploaded by

ishazeeshan07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Install Flutter Manually

This document provides a step-by-step guide for manually installing and setting up the Flutter SDK on a Windows device. It includes instructions for downloading prerequisite software, extracting the SDK, adding it to the PATH environment variable, and validating the setup. Users are advised to consider using an IDE with Flutter support for a better development experience.

Uploaded by

ishazeeshan07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Install Flutter manually

Learn how to install and set up the Flutter SDK manually.

Learn how to install and manually set up your Flutter development environment.

Tip

If you're just looking to quickly install Flutter, consider installing Flutter with VS Code for a
streamlined setup experience.
Choose your development platform
The instructions on this page are configured to cover installing Flutter on a Windows device.

If you'd like to follow the instructions for a different OS, please select one of the following.

Download prerequisite software


Before installing the Flutter SDK, first complete the following setup.

1. Install Git for Windows

Download and install the latest version of Git for Windows.

For help installing or troubleshooting Git, reference the Git documentation.

2. Set up an editor or IDE

For the best experience developing Flutter apps, consider installing and setting up
an editor or IDE with Flutter support.

Install and set up Flutter


To install the Flutter SDK, download the latest bundle from the SDK archive, then extract the
SDK to where you want it stored.

1. Download the Flutter SDK bundle

Download the following installation bundle to get the latest stable release of the Flutter
SDK.

2. Create a folder to store the SDK


Create or find a folder to store the extracted SDK in. Consider creating and using a
directory at %USERPROFILE%\develop ( C:\Users\{username}\develop ).

Note

Select a location that doesn't have special characters or spaces in its path and doesn't
require elevated privileges.

3. Extract the SDK

Extract the SDK bundle you downloaded into the directory you want to store the Flutter
SDK in.

1. Copy the following command.


2. Replace <sdk_zip_path> with the path to the bundle you downloaded.
3. Replace <destination_directory_path> with the path to the folder you
want the extracted SDK to be in.
4. Run the edited command in your preferred terminal.

Expand-Archive –Path <sdk_zip_path> -Destination

<destination_directory_path>

For example, if you downloaded the bundle for Flutter 3.29.3 into the %USERPROFILE%\
Downloads directory and want to store the extracted SDK in the %USERPROFILE%\
develop directory:

Expand-Archive `

-Path $env:USERPROFILE\Downloads\flutter_windows_3.[Link] `

-Destination $env:USERPROFILE\develop\

Note

If the [Link] file is missing from the bin directory after extraction, your
antivirus software might have quarantined it. If this happens, configure your antivirus to
trust the Flutter SDK directory, then extract the bundle again.
Add Flutter to your PATH
Now that you've downloaded the SDK, add the Flutter SDK's bin directory to
your PATH environment variable. Adding Flutter to your PATH allows you to use
the flutter and dart command-line tools in terminals and IDEs.

1. Determine your Flutter SDK installation location


Copy the absolute path to the directory that you downloaded and extracted the Flutter
SDK into.

2. Navigate to the environment variables settings


1. Press Windows + Pause .

If your keyboard lacks a Pause key, try Windows + Fn + B .

The System > About dialog opens.

2. Click Advanced System Settings > Advanced > Environment Variables....

The Environment Variables dialog opens.

3. Add the Flutter SDK bin to your path


1. In the User variables for (username) section of the Environment
Variables dialog, look for the Path entry.
2. If the Path entry exists, double-click it.

The Edit Environment Variable dialog should open.

a. Double-click inside an empty row.


b. Type the path to the bin directory of your Flutter installation.

For example, if you downloaded Flutter into a develop\flutter folder


inside your user directory, you'd type the following:

%USERPROFILE%\develop\flutter\bin

c. Click the Flutter entry you added to select it.


d. Click Move Up until the Flutter entry sits at the top of the list.
e. To confirm your changes, click OK three times.
3. If the entry doesn't exist, click New....

The Edit Environment Variable dialog should open.

a. In the Variable Name box, type Path .


b. In the Variable Value box, type the path to the bin directory of your
Flutter installation.

For example, if you downloaded Flutter into a develop\flutter folder


inside your user directory, you'd type the following:

%USERPROFILE%\develop\flutter\bin
c. To confirm your changes, click OK three times.
4. Apply your changes

To apply this change and get access to the flutter tool, close and reopen all open
command prompts, sessions in your terminal apps, and IDEs.

5. Validate your setup

To ensure you successfully added the SDK to your PATH , open command prompt or your
preferred terminal app, then try running the flutter and dart tools.

flutter --version

dart --version

If either command isn't found, check out Flutter installation troubleshooting

You might also like