Я пытаюсь сделать дизайн, который я нарисовал здесь:
Мой код сейчас:
@override
Widget build(BuildContext context) {
// Build a Form widget using the _formKey we created above
return Form(
key: _formKey,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Text(
'LBS: ',
),
TextFormField(
validator: (value) {
if (value.isEmpty) {
return 'Please enter LBS';
}
},
),
new Text(
'KG: ',
),
new Text(
'{kg value} ',
),
new Row(
new RaisedButton(
onPressed: null,
child: Text('Convert'),
),
new RaisedButton(
onPressed: null,
child: Text('Swap'),
)
),
],
),
);
}
Моя проблема в новом ряду, где я хочу, чтобы две кнопки."new Row (" не ожидает аргументов.