【发布时间】:2020-03-23 11:33:59
【问题描述】:
安卓工作室 3.6
我需要小部件文本位于行首。而上升按钮位于行尾。 我试试这个,但没有帮助
new Container(
margin: const EdgeInsets.only(
top: Constants.DEFAULT_MARGIN / 2,
right: Constants.DEFAULT_MARGIN / 2),
height: Constants.MIN_HEIGHT,
child: new Row(children: [
new Text("Forgot password?",
style: TextStyle(
color: new Color(Constants.COLOR_PRIMARY))),
new Align(
alignment: Alignment.centerRight,
child: new RaisedButton(
child: Text('Sign in'.toUpperCase()),
color: new Color(Constants.COLOR_PRIMARY),
textColor: new Color(
Constants.COLOR_PRIMARY_TEXT_COLOR),
onPressed: () {}))
]))
这里的结果:
为什么Alignment.centerRight 没有帮助
【问题讨论】: