From c53288cdd0aec833df8b0b8663fcba8385263d96 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 12 Jun 2018 03:45:13 -0700 Subject: [PATCH] Contacts --- lib/ui/client/edit/client_edit_contacts.dart | 27 +++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/ui/client/edit/client_edit_contacts.dart b/lib/ui/client/edit/client_edit_contacts.dart index 187a5051b..f491213d1 100644 --- a/lib/ui/client/edit/client_edit_contacts.dart +++ b/lib/ui/client/edit/client_edit_contacts.dart @@ -125,6 +125,24 @@ class ContactEditDetailsState extends State { left: 12.0, right: 12.0, top: 12.0, bottom: 18.0), child: Column( children: [ + Row( + children: [ + 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( autocorrect: false, initialValue: widget.contact.firstName, @@ -133,15 +151,6 @@ class ContactEditDetailsState extends State { labelText: localization.firstName, ), ), - Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - OutlineButton( - child: Text(localization.delete), - onPressed: () => widget.onRemovePressed(widget.key), - ) - ], - ) ], ), ),