What is my problem, that my dartcode is missing these helping //{Widget} comments.

My problem is, I think, not very difficult to solve, but I have problems describing it. In my freshly installed version of Android Studio (with dart and flutter plugin), when I close a widget, it is no longer shown in two brackets which widget it is. Not a huge problem, but it does limit the clarity of the code. I didn't change any of the settings. Maybe it is related to the operating system (I use Linux(PopOS 19.04)).

at my place:
class ExampleState extends State<NoteList> {
  @override
  Widget build(BuildContext context) {
    return Scaffold (
    appBar: AppBar(
        title: Text('Example'),
      ),
    );
  }
}

my goal:

class ExampleState extends State<NoteList> {
  @override
  Widget build(BuildContext context) {
    return Scaffold (
    appBar: AppBar(
        title: Text('Example'),
      ), //AppBar
    ); //Scaffold
  }
}

I hope someone can help me.


Solution 1: danypata

So I think this was a change in the latest updates of the Android Studio, but in order to get it back go to:

Android Studio -> Preferences -> Editor -> General -> Appearance

Enable the Show closing labels in Dart Source code.

enter image description here