Flutter Installation on Android Studio




Hey friends! In this article, we will set up the Flutter
development environment in Android Studio and run an
example code which is generated by default by the new
flutter project template. So let’s get started:


Introduction:

Flutter is a mobile UI framework developed by Google which runs native apps both on android
and ios from a single codebase. Unlike React-native which uses javascript, flutter code is
written in a dart programming language. In flutter, everything is a widget. A widget is like a
drawing board on which you can draw anything from scratch.
In this article, we will setup flutter on the android studio. I am using the latest version of
Android studio on windows 10 to work with flutter, however, you can also use Visual Studio
or IntelliJ idea which also supports flutter.


System Requirements:
  1. Windows 7 or later (64 bit)
  2. Disk space: 400mb
  3. Windows PowerShell or git for windows (if not installed, please install it from the following
  4. links: https://docs.microsoft.com/en-gb/powershell/scripting/install/installing-windows-powershell?view=powershell-6
  5. https://git-scm.com/download/win



Download Flutter SDK:


             Get the latest version of the flutter SDK from the official site. Below is the link:


Setup your environment variables:
  1. Go to start -> control panel.
  2. Search ‘env’ in the search bar.
  3. Under the system tab, go to ‘Edit environment variables for your account’
In User variables, check the entry PATH. If exists, Double click PATH,
append the full path to flutter\bin using; as a separator from existing values.
If not, create a path and add ‘flutter\bin’ to it.


 Install dependencies


From your Console, go to your flutter SDK directory which you have installed and from
there run ‘flutter doctor’. It will automatically look for dependencies and install it if needed.
The command will display the report, If everything looks good you are ready for the next step.
  Android Studio Setup


I assume that you have the latest version of the android studio and its working fine.
The main thing you have to do is install flutter and dart plugins.
  1. Open Preferences -> Plugins. Select browse repositories and search for a flutter.
  2. Install the Flutter plugin. Click Yes when asked for the Dart plugin (you have installed both)

Restart your android studio and get ready.

Comments

Popular Posts