Commit 7841de7e authored by Fikri's avatar Fikri

menambahkan api desc pada contact

parent c708746e
...@@ -7,7 +7,7 @@ var cmd = 'https://dmsdev-api.eksad.com/gateway/medapp/v1/cmd'; ...@@ -7,7 +7,7 @@ var cmd = 'https://dmsdev-api.eksad.com/gateway/medapp/v1/cmd';
var qry = 'https://dmsdev-api.eksad.com/gateway/medapp/v1/qry'; var qry = 'https://dmsdev-api.eksad.com/gateway/medapp/v1/qry';
Future<List<dynamic>> getcontact() async { Future<List<dynamic>> getcontact() async {
var response = await http.get(Uri.parse('$qry/contact/get')); var response = await http.get(Uri.parse('$qry/contact/getContactByDate'));
return jsonDecode(response.body)['data']; return jsonDecode(response.body)['data'];
} }
......
...@@ -613,7 +613,7 @@ class _Dashboard4State extends State<Dashboard4> { ...@@ -613,7 +613,7 @@ class _Dashboard4State extends State<Dashboard4> {
viewUser(context); viewUser(context);
} else if (value == 2) { } else if (value == 2) {
print("you choose Delete..."); print("you choose Delete...");
viewUser(context); deleteContact(context);
} }
}, },
)) ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment