Home > Mobile >  Flutter 2.5 format strange on vscode
Flutter 2.5 format strange on vscode

Time:10-10

I'm learning flutter, as i know, child shoud be on the right of parent for easy understand, because it make the child "inside" parent, like this

enter image description here

But with flutter 2.5, on vscode, it format like this, this make me hard to read and determine which is parent, because, child on left side

enter image description here

How can i fix this ?? i remember last time i use flutter, maybe 1.2, it not look like this

Thank you a lots

CodePudding user response:

it's very easy after each widget simply put "," and viscose will all formate your code: EG:-

  body:Column(

     children:[

         Container(
             child:Text("hello"),
         ),
         ],

)

  • Related