Flutter IntelliJ Plugin M43 Release
We’ve tweaked the behavior of hot reload on save. Previously, we wouldn’t try a reload if there were analysis errors in the project; this was under the assumption that the errors would be significant enough that you wouldn’t want an automatically triggered reload.
We’ve removed that restriction - now, a save will trigger a hot reload even if there are analysis errors in the project. Since initially rolling out hot reload on save, hot reload has both gotten faster, and the quality of the compilation errors from the VM have improved - we can rely on the VM reporting good errors if there are any issues blocking reload.
In addition, we addressed an issue with the reload on save mechanism where it could stop working for that IntelliJ session; requiring a restart of IntelliJ.
We’re launching an early-access version of the plugin, called the dev channel. This version will be updated weekly, containing all changes made in the previous week. To use it you need to configure IntelliJ or Android Studio to look for plugins on the dev channel repository.
Open the Plugins preference page (Mac) or settings page (Windows, Linux). Click the gear at the top-right and select Manage Plugin Repositories.
A list editor will pop up that allows you to edit custom plugin repositories. Add this to the list:
https://plugins.jetbrains.com/plugins/dev/list
Then click OK. The version of the Flutter plugin you see in the Marketplace list will be the dev channel version.
We’ve added support for IntelliJ 2020.1 EAP.
We’ve added an ‘Open DevTools’ menu item to the Tools > Flutter menu to improve the discoverabilty of opening DevTools.
Implemented several fixes to the FPS calculation in the Flutter Performance tool window.
In the analysis server - not yet available to all clients - we’ve added improvements to code completion, including things like completing closures for named parameters ( #25267, #40013, #40202).
The change log has a list of bugs that were fixed in this release.
Canary versions of Android Studio are not officially supported. The dev channel (see above) will be used to distribute versions of the plugin that work with canary builds.
The IDE support for add-to-app does not work well in Android Studio 3.5. We’re expecting 3.6 to become the stable version any day now, and these features do work in 3.6.
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
flutterRoot ='Flutter SDK not found. Define location with flutter.sdk in the local.properties file.'
}
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}android {
compileSdkVersion 29targetSdkVersion 29androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'