press Ctrl and click one othe widget in dart file this should show the tree
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.