解决:在row层中的text层加一个expend

 

flutter Row里面元素居中显示

new Expanded(
                  flex: 5,
                  child: new Row(
                    children: <Widget>[
                      Expanded(
                          child: new Container(
                        alignment: Alignment.center,
                        color: Colors.black38,
                        child: new Text("這裡是logo"),
                      ))
                    ],
                  )),

从这篇悟到的

相关文章:

  • 2021-12-04
  • 2021-09-21
  • 2021-09-09
  • 2021-11-18
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-12-01
相关资源
相似解决方案