flutter-intellij: Type Hierarchy stopped working in Android Studio

As you can see in the Type Hierarchy (right side), I don’t see any dropdown button which can show ImageProvider’s subclasses.

However, you can see (in the middle window) that there are many classes which extends ImageProvider. I should be seeing them in the Type Hierarchy but I don’t.

It only works the first time I open Android Studio (or IntelliJ IDEA), and after that it just shows * sign and doesn’t work as intended. This question has already been asked on Stack Overflow, here’s the link

enter image description here

Flutter Doctor:

[✓] Flutter (Channel dev, 2.9.0-0.1.pre, on macOS 12.0.1 21A559 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at
      https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
[✓] VS Code (version 1.63.1)
[✓] Connected device (2 available)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 33 (16 by maintainers)

Most upvoted comments

I’m having the same problem. The plugin does not show the type hierarchy completely. For example, the hierarchy of the type Widget shows only a few of its children.

image

UPDATE

After some tests, I found it gives the wrong hierarchy tree, for example, the hierarchy of the type Layer:

image

TextureLayer, PictureLayer, and PlatformViewLayer is not the child of the ContainerLayer, instead, it’s Layer’s child.

The problem has been fixed in the Dart Analysis Server. The fix is available starting from Dart SDK 2.19 (which currently has ‘beta’ status). No fixes needed in the Dart or Flutter plugin.