Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Open in app Get started

Published in D6 Digital

Ahmed Thaajwer Follow

Jul 4, 2019 · 6 min read · Listen

Save

Installing Flutter in Windows.

Flutter is very new, but a promising platform, that has attracted the attention of large
companies who’ve released their apps already. It is interesting because of its simplicity
compared to developing web applications, and because of its speed as compared with
native applications.

Here I am going to explain you to how to install flutter in windows.

01. First I am going to list out the requirements for Flutter installation.
186 1
Operating System: Windows 7 or Later version of Windows (64 bit).

Windows Powershell 5.0 or newer(this is pre-installed with Windows10).


Open in app Get started

Git for Windows 2.x, with the use git from the windows, commands prompt
option.

If Git for Windows is already installed, make sure by running the command git or git
— version command.

02. Get the flutter SDK.

Go to the SDK archive page to see all releases of Flutter SDK.


Open in app Get started

Here I mention the latest version of Flutter SDK. Click the Following link to download it
as a zip file.

flutter_windows_v1.5.4-hotfix.2-stable.zip

Create the new folder as flutter into C:\src (C:\src\flutter) and extract the Flutter
SDK zip file in to there.

After extracting the Flutter SDK, Start it by double-clicking on flutter_console.bat


inside the Flutter file.
Open in app Get started

After finishing this all, now you can run the flutter commands in the flutter console.

If you wish to run the Flutter commands in regular windows console, You have to set up
the environment variable for flutter path.

03. Set up an Environment variable for Flutter.

In your start search bar search as ‘eve’ and select Edit environment variables for
your account.

Under User Variables select the option PATH and Edit…


Open in app Get started

Edit environment variable window will pop-up.


Open in app Get started

Click the option New and Input the flutter bin path (C:\src\flutter\bin).
Open in app Get started

Then click ok, ok.

Note: Note that you will have to close and reopen any existing console windows for
these changes to take effect.

04. Run Flutter Doctor.

‘flutter doctor’ command use to see if there any platform dependencies need to
complete the setup.

C:\src\flutter>flutter doctor
Open in app Get started

No issues here now.

Note: This command checks your environment and displays a report of the status of
your Flutter installation. Check the output carefully for other software you might need
to install or further tasks to perform.

For example:(Show in bold text)

[-] Android toolchain - develop for Android devices

• Android SDK at D:\Android\sdk

✗ Android SDK is missing command line tools; download from


https://goo.gl/XxQghQ

• Try re-installing or updating your Android SDK,

visit https://flutter.dev/setup/#android-setup for detailed


instructions.

The following section describes how to perform these tasks and finish the setup
process. Once you have installed any missing dependencies, you can run flutter doctor
command again to verify that you have set everything correctly.
05. Android Setup Get started
Open in app

1. Install android studio.

Download and install the android studio. You can download it from the link which I
mentioned belove.

Download Android Studio and SDK tools


Download the official Android IDE and developer tools to build apps
for Android phones, tablets, wearables, TVs, and…
developer.android.com

Start Android Studio, and go through the ‘Android Studio Setup Wizard’. This
installs the latest Android SDK, Android SDK Platform-Tools, and Android SDK
Build-Tools, which are required by Flutter when developing for Android.

2. Method 1=> Set Up your android device

Note: If You need to run and test your Flutter app on an Android device, you’ll need an
Android device running Android 4.1 or higher.

Enable developer option and USB debugging on your device. For more details
check this link.

Configure on-device developer options | Android Developers


The Settings app on Android includes a screen called Developer
options that lets you configure system behaviours that…
developer.android.com

For windows only=> install the Google USB drive. You can get more knowledge
and can download it from the link which I mentioned belove.

Get the Google USB Driver | Android Developers


https://developer.android.com/reference/android/speech/Recogniti
onService, as updated from time to time, you…
developer.android.com
Open in app Get started

Using a USB cable, plug your phone into your computer. If prompted on your
device, authorize your computer to access your device.

In the terminal, run the flutter devices command to verify that Flutter recognizes
your connected Android device.

Method 2=> Setup the Android Emulator.

Enable VM acceleration on your machine. Refer this link to Enable,

Configure hardware acceleration for the Android Emulator |


Android Developers
When you create an Android Virtual Device (AVD) in the AVD
Manager, you can specify whether the emulator should use…
developer.android.com

Create and manage your virtual device, check the belove link for setup your virtual
device.

Create and manage virtual devices | Android Developers


To ensure app security and a consistent experience with physical
devices, system images with the Google Play Store…
developer.android.com

In Android Virtual Device Manager(AVD Manager), click Run(click the green


button)in the toolbar. The emulator starts up and displays the default canvas for
your selected OS version and device.
Open in app Get started

06. Setup an Editor.

1. Install Android studio(We have already done this).

2. Install the Flutter and Dart Plugins.

Start Android Studio

Open plugin preferences (File > Settings > Plugins )

Select Browse repositories, select the Flutter plugin and click Install. Here I
installed it earlier.
Open in app Get started

Click Yes when prompted to install dart plugin

Click restart when prompted.

07. Test Drive

Create the App- here I describe how to create a new flutter app from templates.

Open the IDE and select Start a new Flutter project.(File->New->new flutter
project>
Open in app Get started

Select Flutter Application as the project type. Then click Next.

Verify the Flutter SDK path specifies the SDK’s location (select Install SDK… if the
text field is blank).

Enter a project name (for example, ‘myapplication’). Then click Next.


Open in app Get started

Click Finish.

Wait for Android Studio to install the SDK and create the project.

Now you are ready to create the app in Flutter. Congratulations… 😊

About Help Terms Privacy

Get the Medium app

You might also like