Row:儿呀,你想要多大,就给你多大。
TextField: 老爸,你给我多大,我就多大。
结果,这父子俩互相谦虚,或者说互相推脱,事情就僵在那儿了。
Row直接包裹TextField异常:BoxConstraints forces an infinite width
解决方法:
Row(
children: <Widget>[
Flexible(
child: new TextField(),
),
],
),
Row:儿呀,你想要多大,就给你多大。
TextField: 老爸,你给我多大,我就多大。
结果,这父子俩互相谦虚,或者说互相推脱,事情就僵在那儿了。
Row直接包裹TextField异常:BoxConstraints forces an infinite width
解决方法:
Row(
children: <Widget>[
Flexible(
child: new TextField(),
),
],
),