This page describes how to set up an IntelliJ IDE to develop Flutter apps.
- Flutter IntelliJ IDE plugins
Flutter IntelliJ IDE plugins
You can write Flutter apps in a text editor, but if you choose to work in an IDE we recommend IntelliJ for a rich IDE experience. Our Flutter and Dart plug-ins support editing, running, and debugging Flutter apps.
You can use the IntelliJ plug-ins with one of the following JetBrains IDEs:
- IntelliJ IDEA, Community (free) edition, version 2016.3 or 2017.1.
- IntelliJ IDEA, Ultimate edition, version 2016.3 or 2017.1.
- IntelliJ WebStorm, version 2016.3 or 2017.1.
Android Studio (and various other JetBrains editors) is currently not supported.
Installing the plugins
To use IntelliJ with Flutter, you need two plugins:
Flutterplugin powers Flutter developer workflows (running, debugging, hot reload, etc.).
Dartplugin offers code analysis (code validation as you type, code completions, etc.).
When you install the Flutter plugin, if the Dart plugin is not already present IntelliJ installs it for you.
To install the plugins:
- Start IntelliJ.
- Open plugin preferences (Preferences>Plugins on macOS, File>Settings>Plugins on Linux).
- Select Browse repositories…, select the Flutter plug-in and click
Yeswhen prompted to install the Dart plugin.
Restart IntelliJ IDEA.
After restarting, the Dart and Flutter plugins should both display in the left navigation panel when you create a new project.
Configuring the Flutter plugin
- Open preferences (Preferences on macOS, File>Settings on Linux).
- Select Languages & Frameworks>Flutter.
- Enter or browse to your Flutter SDK directory in Flutter SDK path. This is the top-level
flutterdirectory, without the
binsubdirectory. For example,
- Click OK