Added the ability to edit Servers 2 #20
1 changed files with 5 additions and 5 deletions
|
@ -228,9 +228,8 @@ class _ServerListState extends State<ServerList> {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
Expanded(
|
RaisedButton(
|
||||||
child: RaisedButton(
|
child: Text("Cancel"),
|
||||||
child: Text("Confirm"),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (_formKey.currentState.validate()) {
|
if (_formKey.currentState.validate()) {
|
||||||
_formKey.currentState.save();
|
_formKey.currentState.save();
|
||||||
|
@ -238,7 +237,7 @@ class _ServerListState extends State<ServerList> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
Expanded(child:Text(' ')),
|
||||||
RaisedButton(
|
RaisedButton(
|
||||||
child: Text("Confirm"),
|
child: Text("Confirm"),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -249,6 +248,7 @@ class _ServerListState extends State<ServerList> {
|
||||||
server.uri = uri.text;
|
server.uri = uri.text;
|
||||||
});
|
});
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
_updateServerStatus(server);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -363,7 +363,7 @@ class _ServerListState extends State<ServerList> {
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_removeServer(index);
|
_modifyServerForm(servers[index]);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
|
|
Loading…
Reference in a new issue