Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Outline View - "Nothing to show"

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

like image 396
swissonid Avatar asked Feb 24 '18 19:02

swissonid


People also ask

Why is my flutter outline not showing anything?

Just follow these easy steps: Click Dart Analysis (on below part of Android Studio) You can see refresh button right side of Dart Analysis. Click it, done!

How do I open flutter inspector?

To debug a layout issue, run the app in debug mode and open the inspector by clicking the Flutter Inspector tab on the DevTools toolbar. Note: You can still access the Flutter inspector directly from Android Studio/IntelliJ, but you might prefer the more spacious view when running it from DevTools in a browser.


5 Answers

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

enter image description here

like image 58
Pyae Sone Avatar answered Oct 21 '22 04:10

Pyae Sone


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.

like image 27
Gazihan Alankus Avatar answered Oct 21 '22 04:10

Gazihan Alankus


enter image description here

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

like image 29
Lior Zarhi Avatar answered Oct 21 '22 02:10

Lior Zarhi


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.

like image 4
XYZ KIDS Avatar answered Oct 21 '22 04:10

XYZ KIDS


just run

flutter pub upgrade it works for me

like image 2
Ali Baig Avatar answered Oct 21 '22 03:10

Ali Baig