You can build apps with Flutter using any text editor or integrated development environment (IDE) combined with Flutter's command-line tools. The Flutter team recommends using an editor that supports a Flutter extension or plugin, like VS Code and Android Studio. These plugins provide code completion, syntax highlighting, widget editing assists, run & debug support, and more.
You can add a supported plugin for Visual Studio Code, Android Studio, or IntelliJ IDEA Community, Educational, and Ultimate editions. The
Flutter plugin
only
works with Android Studio and the listed editions of IntelliJ IDEA.
Follow these procedures to add the Flutter plugin to VS Code, Android Studio, or IntelliJ.
VS Code
is a code editor to build and debug apps. With the Flutter extension installed, you can compile, deploy, and debug Flutter apps.
To install the latest version of VS Code, follow Microsoft's instructions for the relevant platform:
Start
VS Code
.
Open a browser and go to the
Flutter extension
page on the Visual Studio Marketplace.
Click
Install
. Installing the Flutter extension also installs the Dart extension.
Go to
View
>
Command Palette...
.
You can also press
Ctrl
/
Cmd
+
Shift
+
P
.
Type
doctor
.
Select the
Flutter: Run Flutter Doctor
.
Once you select this command, VS Code does the following.
- Opens the
Output
panel.
- Displays
flutter (flutter)
in the dropdown on the upper right of this panel.
- Displays the output of Flutter Doctor command.
Android Studio and IntelliJ IDEA offer a complete, IDE experience once you install the Flutter plugin.
To install the latest version of the following IDEs, follow their instructions:
The installation instructions vary by platform.
Use the following instructions for macOS:
Start Android Studio or IntelliJ.
From the macOS menu bar, go to
Android Studio
(or
IntelliJ
)
>
Settings...
.
You can also press
Cmd
+
,
.
The
Preferences
dialog opens.
From the list at the left, select
Plugins
.
From the top of this panel, select
Marketplace
.
Type
flutter
in the plugins search field.
Select the
Flutter
plugin.
Click
Install
.
Click
Yes
when prompted to install the plugin.
Click
Restart
when prompted.
Use the following instructions for Linux or Windows:
Go to
File
>
Settings
.
You can also press
Ctrl
+
Alt
+
S
.
The
Preferences
dialog opens.
From the list at the left, select
Plugins
.
From the top of this panel, select
Marketplace
.
Type
flutter
in the plugins search field.
Select the
Flutter
plugin.
Click
Install
.
Click
Yes
when prompted to install the plugin.
Click
Restart
when prompted.