This commit is contained in:
unknown 2018-06-12 03:45:13 -07:00
parent 4328f814a7
commit c53288cdd0
1 changed files with 18 additions and 9 deletions

View File

@ -125,6 +125,24 @@ class ContactEditDetailsState extends State<ContactEditDetails> {
left: 12.0, right: 12.0, top: 12.0, bottom: 18.0), left: 12.0, right: 12.0, top: 12.0, bottom: 18.0),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Row(
children: <Widget>[
Expanded(
child: TextFormField(
autocorrect: false,
initialValue: widget.contact.firstName,
onSaved: (value) => _firstName = value.trim(),
decoration: InputDecoration(
labelText: localization.firstName,
),
),
),
IconButton(
icon: Icon(Icons.close),
onPressed: () => widget.onRemovePressed(widget.key),
)
],
),
TextFormField( TextFormField(
autocorrect: false, autocorrect: false,
initialValue: widget.contact.firstName, initialValue: widget.contact.firstName,
@ -133,15 +151,6 @@ class ContactEditDetailsState extends State<ContactEditDetails> {
labelText: localization.firstName, labelText: localization.firstName,
), ),
), ),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
OutlineButton(
child: Text(localization.delete),
onPressed: () => widget.onRemovePressed(widget.key),
)
],
)
], ],
), ),
), ),