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
d65976f2
Commit
d65976f2
authored
Sep 02, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/qorridi/medapp_eksad
parents
34fbd5f8
697b8c40
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
138 additions
and
42 deletions
+138
-42
contact_api.dart
lib/api/contact_api.dart
+1
-0
user_api.dart
lib/api/user_api.dart
+24
-0
register.dart
lib/register.dart
+113
-41
small_contact_us2.dart
lib/screen_small/small_contact/small_contact_us2.dart
+0
-1
No files found.
lib/api/contact_api.dart
View file @
d65976f2
...
...
@@ -19,6 +19,7 @@ Future savecontact(nama, email, nohp, message) async {
// } else {
// return false;
// }
return
response
.
statusCode
;
}
Future
<
List
<
contact
>>
showcontact
()
async
{
...
...
lib/api/user_api.dart
View file @
d65976f2
import
'dart:convert'
;
import
'package:http/http.dart'
as
http
;
Future
<
bool
>
signup
(
nama
,
email
,
nohp
,
username
,
password
)
async
{
final
response
=
await
http
.
post
(
Uri
.
parse
(
'http://10.3.4.250:8081/medapp/v1/api/user/save'
),
body:
jsonEncode
({
"namaUser"
:
nama
,
"emailUser"
:
email
,
"noHp"
:
nohp
,
"username"
:
username
,
"password"
:
password
}),
headers:
{
'Content-type'
:
'application/json; charset=UTF-8'
,
}
);
if
(
response
.
statusCode
==
200
)
{
return
true
;
}
else
{
return
false
;
}
// return response.statusCode;
}
\ No newline at end of file
lib/register.dart
View file @
d65976f2
This diff is collapsed.
Click to expand it.
lib/screen_small/small_contact/small_contact_us2.dart
View file @
d65976f2
...
...
@@ -249,7 +249,6 @@ class _ContactUs2_smallState extends State<ContactUs2_small> {
Text
(
'Failed to send message!'
),
backgroundColor:
Colors
.
red
),
);
nameController
.
clear
();
phoneController
.
clear
();
emailController
.
clear
();
...
...
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