解决:在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"), )) ], )),
从这篇悟到的
解决:在row层中的text层加一个expend
new Expanded( flex: 5, child: new Row( children: <Widget>[ Expanded( child: new Container( alignment: Alignment.center, color: Colors.black38, child: new Text("這裡是logo"), )) ], )),
从这篇悟到的