Installing Flutter in Windows.

Ahmed Thaajwer
D6 Digital
Published in
6 min readJul 4, 2019

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.

  • Operating System: Windows 7 or Later version of Windows (64 bit).
  • Windows Powershell 5.0 or newer(this is pre-installed with Windows10).
  • 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 gitversion command.

02. Get the flutter SDK.

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

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.

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…
  • Edit environment variable window will pop-up.
  • Click the option New and Input the flutter bin path (C:\src\flutter\bin).

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

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

  1. Install android studio.
  • Download and install the android studio. You can download it from the link which I mentioned belove.
  • 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.
  • For windows only=> install the Google USB drive. You can get more knowledge and can download it from the link which I mentioned belove.
  • 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,
  • Create and manage your virtual device, check the belove link for setup your virtual device.
  • 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.

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.
  • 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>
  • 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.
  • 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…😊

--

--

Ahmed Thaajwer
D6 Digital

B.Sc.(hons) in Computing & Information System(SUSL). Former Software Engineer@D6 Digital. IEEE Brand Ambassador@IEEE. Regional Country Director@UYG.