Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qorri_di
medapp_eksad
Commits
2ab7e9e2
Commit
2ab7e9e2
authored
Sep 19, 2022
by
Tohap Maruli Pasaribu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/qorridi/medapp_eksad
parents
0fdc896b
24c4d453
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
190 additions
and
72 deletions
+190
-72
contact_api.dart
lib/api/contact_api.dart
+14
-0
admin_contact.dart
lib/dashboard/admin/admin_contact.dart
+176
-72
No files found.
lib/api/contact_api.dart
View file @
2ab7e9e2
...
@@ -30,3 +30,17 @@ Future<bool> savecontact(nama, email, nohp, message) async {
...
@@ -30,3 +30,17 @@ Future<bool> savecontact(nama, email, nohp, message) async {
// return response.statusCode;
// return response.statusCode;
}
}
Future
<
bool
>
deleteContact
(
id
)
async
{
final
response
=
await
http
.
delete
(
Uri
.
parse
(
'
$cmd
/contact/delete/
$id
'
),
headers:
{
'Content-type'
:
'application/json; charset=UTF-8'
,
},
);
if
(
response
.
statusCode
==
200
)
{
return
true
;
}
else
{
return
false
;
}
}
lib/dashboard/admin/admin_contact.dart
View file @
2ab7e9e2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment