Move the mouse to any widget and Press Ctrl (or command on macOS) and click on that widget. --- After this step, your Flutter Outline will be enabled and showing widget treepress Ctrl and click one othe widget in dart file this should show the treeright 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.