Hi has anyone already tried the new "Flutter Outline"-View?
I only see "Nothing to show" what I do wrong? Has anyone an idea?
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!
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.
Click to red restart dart analysis server button. It works for me.
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.
From my experience, hold Ctrl/Command and click on that widget to activate your FLutter Outline.
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.
just run
flutter pub upgrade
it works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With