Solution 1 :
These are valid for Android Studio and IntelliJ respectively:
Automatically formatting code in Android Studio and IntelliJ
To automatically format your code in the current source code window, use Cmd+Alt+L
(on Mac) or Ctrl+Alt+L
(on Windows and Linux).
In addition to that, you can go to "File/Settings,"
then search for "Flutter"
and enable "Show UI Guides for build methods"
:
Problem :
Comments
Comment posted by 鹰 9am
Thank you for your answer, I just tried it, it does format, but there is still no such line
Comment posted by 鹰 9am
thanks, I just made sure it’s set as you said, but it still turns out like the updated image in the question