If you want to develop flutter applications and has an experience of working with Android studio, you can easily configure your existing android studio to start developing flutter applications. Below are the steps to install Flutter and Dart Plugins in Android Studio.
Note: In our setup Android studio was installed at /home/devlab/devlab/android-studio , Please change paths as required depending on your setup.
$ cd /home/devlab/devlab/android-studio
This will start Android Studio, now as shown below, from “Configure” click on “Plugins”
From the opened “Plugin” search type “Flutter” and press Enter.It will search for flutter plugins and display it as below,
Click “Install” During installation of Flutter Plugin, it will popup with a dialog to install dependent Dart Plugin as below, click on “Yes”
This will install both Dart and Flutter plugin, and Android Studio will prompt you to restart IDE, as below, click on “Restart IDE”
Now, after restart if you start any project first time, you will get a dialog as below, which will ask you whether you want to report any crash report to google, you can decide any as you want.
Option 2 : If you already have some project open in Android Studio, you can install the Plugins as below,
- Start Android Studio.
- Open plugin preferences (Preferences > Plugins on macOS,
- File > Settings > Plugins on Windows & Linux).
- Select Browse repositories, select the Flutter plugin and click Install.
- Click Yes when prompted to install the Dart plugin.
- Click Restart when prompted.
The Window to install Plugin looks like as below,