Flutter Outline View - "Nothing to show"

8,813

Solution 1

Edit: the below was the solution for the time. It seems this started to happen again recently and the solution is different. Please check the highly voted answer below for this. https://stackoverflow.com/a/61165205/679553


As I can tell from the Gitter chat, you are under the alpha channel, because you probably installed Flutter SDK through the IntelliJ plugin (this is a bug).

Open a terminal/command window and type flutter channel. You'll see that you are in the alpha channel, which is actually abandoned. You need to be in the dev channel, but for some reason switching from alpha to dev does not work. Do this:

flutter channel master
flutter doctor
flutter channel dev
flutter doctor
flutter channel

This should tell you that you are in dev channel. Now restart IntelliJ and try again.

If it still won't work, maybe you are on Windows like me? I filed a bug report about that.

Solution 2

Click to red restart dart analysis server button. It works for me.

enter image description here

Solution 3

enter image description here

From my experience, hold Ctrl/Command and click on that widget to activate your FLutter Outline.

Solution 4

right click in the file and select 'reformat code with dartfmt' it will format your code and then left click in the file and select dart outline.

Solution 5

just run

flutter pub upgrade it works for me

Share:
8,813
swissonid
Author by

swissonid

Updated on December 04, 2022

Comments

  • swissonid
    swissonid over 1 year

    Hi has anyone already tried the new "Flutter Outline"-View?

    I only see "Nothing to show" what I do wrong? Has anyone an idea?

    enter image description here