From 227689f9ee91632e15fae1f9cc831b3d9e8b09e4 Mon Sep 17 00:00:00 2001 From: Hugo Bayer Date: Wed, 29 Jan 2020 11:18:29 +0100 Subject: [PATCH] Added the ability to edit Servers 2 --- lib/serverlist.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/serverlist.dart b/lib/serverlist.dart index 035a7d0..b356329 100644 --- a/lib/serverlist.dart +++ b/lib/serverlist.dart @@ -228,9 +228,8 @@ class _ServerListState extends State { Padding( padding: const EdgeInsets.all(8.0), child: Row(children: [ - Expanded( - child: RaisedButton( - child: Text("Confirm"), + RaisedButton( + child: Text("Cancel"), onPressed: () { if (_formKey.currentState.validate()) { _formKey.currentState.save(); @@ -238,7 +237,7 @@ class _ServerListState extends State { } }, ), - ), + Expanded(child:Text(' ')), RaisedButton( child: Text("Confirm"), onPressed: () { @@ -249,6 +248,7 @@ class _ServerListState extends State { server.uri = uri.text; }); Navigator.of(context).pop(); + _updateServerStatus(server); } }, ) @@ -363,7 +363,7 @@ class _ServerListState extends State { color: Colors.grey, ), onPressed: () { - _removeServer(index); + _modifyServerForm(servers[index]); }, ), ]), -- 2.47.1