/flutter-intellij

Flutter makes it easy and fast to build beautiful mobile apps.

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Flutter Flutter Plugin for IntelliJ

Join Gitter Chat Channel - Build Status

An IntelliJ plugin for Flutter development. Flutter is a new mobile app SDK to help developers and designers build modern mobile apps for iOS and Android.

Documentation

Fast development

Flutter's hot reload helps you quickly and easily experiment, build UIs, add features, and fix bugs faster. Experience sub-second reload times, without losing state, on emulators, simulators, and hardware for iOS and Android.

Make a change in your code, and your app is changed instantly.

Quick-start

A brief summary of the getting started guide:

  • install the Flutter SDK
  • run flutter doctor from the command line to verify your installation
  • ensure you have a supported IntelliJ development environment, either:
    • IntelliJ 2017.3 or 2018.1, Community or Ultimate Edition, or
    • Android Studio 3.1 (note: Android Studio 3.2 Canary is currently not supported)
  • open the plugin preferences
    • Preferences > Plugins on macOS, File > Settings > Plugins on Linux, select "Browse repositories…"
  • search for and install the 'Flutter' plugin
  • choose the option to restart IntelliJ
  • configure the Flutter SDK setting
    • Preferences on macOS, File>Settings on Linux, select Languages & Frameworks > Flutter, and set the path to the root of your flutter repo

Preview Dart 2

The latest version of the IntelliJ and Android Studio plugin allows you to configure whether your app is analyzed and run with the preview version of Dart 2.0. This will control things like the way your code is statically analyzed, and the behavior of the runtime type system (and the type errors you'll see).

By default, we pick up the base setting from the Flutter SDK. This can be overridden in the Preferences dialog, in Languages & Settings > Flutter. You can change the 'Run applications in Dart 2.0 mode' preference from:

  • using the Flutter SDK default
  • enabling preview Dart 2.0, or
  • disabling preview Dart 2.0

Filing issues

Please use our issue tracker for Flutter IntelliJ issues.

  • for more general Flutter issues, you should prefer to use the Flutter issue tracker
  • for more Dart IntelliJ related issues, you can use JetBrains' YouTrack tracker

Known issues

Please note the following known issues:

  • If you are building Flutter plugins using Swift, be sure you have at leastcocoapods 1.5.0 installed; an issue tracking a corresponding update to flutter doctor is: flutter/#16930.
  • In Android Studio 3.1, after an application starts up, the Inspector will often still say "No running applications". The application is running; in order to see the Inspector contents for it, you need to click on the named device tab in the Inspector window. This issue is not present in IntelliJ IDEA or in later versions of Android Studio.
  • #601: IntelliJ will read the PATH variable just once on startup. Thus, if you change PATH later to include the Flutter SDK path, this will not have an affect in IntelliJ until you restart the IDE.