To install and run Flutter on the
Windows system, you need first to meet these requirements for your development
environment.
Minimum System
Requirements
- Operating Systems: Windows 7 SP1 or later (64-bit)
- Disk Space: At least 400 MB.
- Tools: Flutter depends on these tools being available in your environment.
- Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10).
There are two way to setup flutter in your window 10.
2.
Flutter SDK Installations
Install Git
Step 1: To download Git click here.
Step 2: For the
installation to be finished, run the.exe file. Verify that you choose the
suggested choice during installation.
use this commond on command terminal.
C:\src>git clone https://github.com/flutter/flutter.git -b stable
Install the Flutter SDK
Step 1: Download the
Windows version of the Flutter Software Development Kit. To download Flutter
SDK, go to its official website and click on the Get started button. The
following page will appear.
Step 2: Next, Click
on the Windows icon button to continue downloading the most recent Flutter SDK.
The SDK download link may be found here. The following page will appear.
Step 3: When your
download is complete, extract the zip file and place
it in the desired installation folder or location, for example, D: /Flutter.
Step 4: To run the
Flutter command in regular windows console, you need to update the system path
to include the flutter bin directory. The following steps are required to do
this:
Step 4.1: Go to
MyComputer properties -> advanced tab -> environment variables. You will
get the following screen.
Step 4.2: Now, select
path -> click on edit. The following screen appears.
Step 4.3: In the above
window, click on New->write path of Flutter bin folder in variable value
-> ok -> ok -> ok.
Step 5: Now, run the
$ flutter doctor command. This command checks for
all the requirements of Flutter app development and displays a report of the
status of your Flutter installation.
1.
$ flutter doctor -v or
Step 6: When you run
the above command, it will analyze the system and show its report, as shown in
the below image. Here, you will find the details of all missing tools, which
required to run Flutter as well as the development tools that are available but
not connected with the device.
Step 7: Install the
Android SDK. If the flutter doctor command does not find the Android SDK tool
in your system, then you need first to install the Android Studio IDE. To
install Android Studio IDE, do the following steps.
Step 7.1: Download the
latest Android Studio executable or zip file from the official site.
Step 7.2: When the
download is complete, open the .exe file and run it.
You will get the following dialog box.
Step 7.3: Follow the steps of the installation wizard. Once the installation wizard completes, you will get the following screen.
Step 7.4: In the above
screen, click Next-> Finish. Once the Finish button is clicked, you need to
choose the 'Don't import Settings option’ and click OK. It will start the
Android Studio.
Step 7.5: In the below
screen, click Tools ->. After that click SDK Manager->.
Step 7.6: Follow the below
screen and select all the name which are selected in it.
Step 7.7: Follow the below
screen and select all the name which are selected in it.
Step 8: Next, you
need to set up an Android emulator. It is responsible for running and testing
the Flutter application.
Step 8.1: To set an Android
emulator, go to Android Studio > Tools > Android > AVD Manager and
select Create Virtual Device. Or, go to Help->Find Action->Type Emulator
in the search box. You will get the following screen.
Step 8.2: Choose your
device definition and click on Next.
Step 8.3: Select the
system image for the latest Android version and click on Next.
Step 8.4: Now, verify
the all AVD configuration. If it is correct, click on Finish. The following
screen appears.
Step 8.5: Last, click
on the icon pointed into the red color rectangle. The Android emulator
displayed as below screen.
Step 9: Install the
Dart and Flutter plugins now to start developing Flutter applications in
Android Studio. These add-ons offer a template for building Flutter
applications and the ability to launch and debug them directly from Android
Studio. Install these plugins by doing the below instructions.
Step 9.1: Open the
Android Studio and then go to File->Settings->Plugins.
Step 9.2: Search the
Flutter plugin right now. Choose the Flutter plugin and click install if it is
found. When you click "install," a popup similar to the one below
will prompt you to install the Dart plugin. Select "yes" to continue.
Step 9.3: Restart the
Android Studio.
0 Comments