Set up an editor
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.
(The Dart plugin supports eight additional JetBrains IDEs.)
Follow these procedures to add the Flutter plugin to VS Code, Android Studio, or IntelliJ.
If you choose another IDE, skip ahead to the next step: Test drive.
Install VS Code
#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:
Install the VS Code Flutter extension
#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.
Validate your VS Code setup
#Go to View > Command Palette....
You can also press Ctrl / Cmd + Shift + P.
Type
doctor
.Select 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.
Install Android Studio or IntelliJ IDEA
#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:
Install the Flutter plugin
#The installation instructions vary by platform.
macOS
#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.
Linux or Windows
#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.
Unless stated otherwise, the documentation on this site reflects the latest stable version of Flutter. Page last updated on 2024-09-27. View source or report an issue.