Alternatively, you can also use IntelliJ:

IntelliJ IDEA Community, version 2021.2 or later

IntelliJ IDEA Ultimate, version 2021.2 or later

Install the Flutter and Dart plugins

The installation instructions vary by platform.

Mac

Use the following instructions for macos:

Start Android Studio.

Open plugin preferences (Preferences > Plugins as of
v3.6.3.0 or later).

Select the Flutter plugin and
click Install.

Click Yes when prompted to install the Dart plugin.

Click Restart when prompted.

Linux or Windows

Use the following instructions for Linux or Windows:

Open plugin preferences (File > Settings > Plugins).

Select Marketplace,  select the Flutter plugin and click
Install.

Install Emacs