Set the space between Elements in Row Flutter

后端 未结 8 592
清酒与你
清酒与你 2021-01-30 06:20

Code:

new Container(
          alignment: FractionalOffset.center,
          child: new Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
             


        
8条回答
  •  野性不改
    2021-01-30 07:02

    Row(
     children: [
      Flexible(
       child: TextFormField()),
      Container(width: 20, height: 20),
      Flexible(
       child: TextFormField())
     ])
    

    This works for me, there are 3 widgets inside row: Flexible, Container, Flexible

提交回复
热议问题