0

I am running my flutter app successfully on my emulator. However, I need the use of the Widget Inspector for testing purposes.

To run my app I use the following:

flutter run --flavor dev -t lib/main_prod.dart

However, when I use the palette to bring up the "Open DevTools" I end up getting what is shown in the image

noInspector

I've run flutter clean before running my app and it still didn't work.

Please help!

ZenithF0RTE
  • 363
  • 4
  • 11

2 Answers2

0

Never mind, I figured it out.

I was looking for the typical pop-up tool bar and overlooked this: keyCommands

Simply pressing "h" for "List all available interactive commands." brought up a more comprehensive list with the option for an inspector:

moreKeyCommands

Pressing "v" to open the flutter tools here works.

ZenithF0RTE
  • 363
  • 4
  • 11
0

When you run it by your command in a terminal, you will see the URL which is generated during the process.

Enter this URL to connect in DevTools on your browser

If your project requires to use of an old version of 3.3.9, you could do it. If not, you could upgrade to version 3.7.4