Install and run DevTools from Android Studio
Install the Flutter plugin
Install the Flutter plugin if you don’t already have it installed. This can be done using the normal Plugins page in the IntelliJ and Android Studio settings. Once that page is open, you can search the marketplace for the Flutter plugin.
Start an app to debug
To open DevTools, you first need to run a Flutter app. This can be accomplished by opening a Flutter project, ensuring that you have a device connected, and clicking the Run or Debug toolbar buttons.
Launch DevTools from the toolbar/menu
Once an app is running, you can start DevTools using one of the following:
- Select the Open DevTools toolbar action in the Run view.
- Select the Open DevTools toolbar action in the Debug view. (if debugging)
- Select the Open DevTools action from the More Actions menu in the Flutter Inspector view.
Launch DevTools from an action
You can also open DevTools from an IntelliJ action.
Open the Find Action… dialog
(on a Mac, press
Command+Shift+A), and search for the
Open DevTools action. When you select that action,
DevTools is installed (if it isn’t already), the DevTools server
launches, and a browser instance opens pointing to the DevTools app.
When opened with an IntelliJ action, DevTools is not connected to a Flutter app. You’ll need to provide a service protocol port for a currently running app. You can do this using the inline Connect to a running app dialog.