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.
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.
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.
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!
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.
The button in the field editor brings up a dialog that allows selecting and creating environment variables.
The embedded DevTools is now the only inspector available. The old code was hard to maintain and not getting updates comparable to DevTools.
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)