Flutter IntelliJ Plugin M74 Release

216 views
Skip to first unread message

Steve Messick

unread,
Jun 1, 2023, 2:21:42 PM6/1/23
to flutter-...@googlegroups.com

Flutter IntelliJ Plugin M74 Release

DevTools on Multiple Devices

Thanks to GitHub user AlexV525 the embedded inspector can now drive multiple devices simultaneously. The PR includes an example video showing two devices in use.


Here’s a portion of the Android Studio window showing two devices connected to the inspector.

image.png


There is one small problem we should try to correct. Switching the device in the inspector does not switch the active debugger. You need to manually activate the appropriate debugger tab. This only affects syncing the editor selection with the widget selection. Also, remember that the device selector still controls the device used when launching an app.

Preserve Console Logs during Hot Reload/Restart

AlexV525 also added a new option that allows you to preserve the contents of the console log during Hot Reload and Hot Restart. Until now, each time the app was re-initialized the console was cleared. With this option the debugging info in the console will be appended instead of replaced when the app is Hot Restarted or Hot Reloaded. Find it in the plugin settings. This screen shot shows two hot reloads have been performed, and the portion of the settings panel with the new option.

image.png

Live Templates updated to Dart 2.17

The templates stanim, stful, stless, and inh have been updated to use super-parameters. This is a breaking change for users on older versions of Dart. Formerly, the template used constructor code like:

const $NAME$({Key? key}) : super(key: key);

The new style is:

const $NAME$(super.key);

Thanks to user DevBlooming on GitHub for the contribution!

Environment Variables in Run Configurations

Formerly, the environment variables field was disabled for all but desktop platforms. We’ve relaxed that to allow environment variables to be defined for any run config.

image.png


The button in the field editor brings up a dialog that allows selecting and creating environment variables.

image.png

Removed Legacy Inspector

The embedded DevTools is now the only inspector available. The old code was hard to maintain and not getting updates comparable to DevTools.

Supported Platforms

Android Studio

  • Electric Eel | 2022.1

  • Flamingo | 2022.2

  • Giraffe | 2022.3

  • Hedgehog | 2023.1  (unofficial, since this is the canary version)


IntelliJ

  • 2022.1, 2022.2, 2022.3

  • 2023.1, 2023.2 (unofficial, since this is the EAP version)


Reply all
Reply to author
Forward
0 new messages