flutter-intellij: [Editor] Hierarchy lines of widgets are overflowed randomly

image

[✓] Flutter (Channel stable, 3.3.10, on Microsoft Windows [版本 10.0.22000.1455], locale zh-CN)
    • Flutter version 3.3.10 on channel stable at X:\SDK\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (8 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at X:\IDEs\apps\IDEA-U\ch-0\223.8617.56
    • Flutter plugin version 72.0.4
    • Dart plugin version 223.8617.8

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

This is done by the Dart plugin. I think the incorrect lines are always drawn below a left paren. (If not, then my guess as to how it is drawn is wrong, but it is still in the Dart plugin.) I suspect the code that does this was not updated after the Dart plugin stopped using its own formatter.

I created https://youtrack.jetbrains.com/issue/WEB-59450/Dart-indent-guides-anomaly

It appears that the lines that are displaying incorrectly are controlled by the IntelliJ setting, not the Flutter plugin setting. (Let me know if I misunderstood.)

I’ll have to check how those lines are drawn. It seems like it should be done by a plugin, but might be Dart.