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
85d2ba63
Commit
85d2ba63
authored
Sep 02, 2022
by
Arham Aulia Nugraha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
register v2
belom validasi
parent
697b8c40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
8 deletions
+37
-8
register.dart
lib/register.dart
+36
-5
contact_us2.dart
lib/screen/contact_us/contact_us2.dart
+1
-3
No files found.
lib/register.dart
View file @
85d2ba63
...
...
@@ -54,11 +54,11 @@ class _RegisterState extends State<Register> {
Padding
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.33
,
top:
screenize
.
height
*
0.07
),
child:
Container
(
width:
screenize
.
width
*
0.3
,
height:
screenize
.
height
*
0.6
,
width:
screenize
.
width
*
0.30
,
height:
screenize
.
height
*
0.9
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
color:
Colors
.
white
,
borderRadius:
BorderRadius
.
circular
(
20
),
...
...
@@ -82,7 +82,7 @@ class _RegisterState extends State<Register> {
child:
Container
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.045
,
top:
screenize
.
height
*
0.0
2
top:
screenize
.
height
*
0.0
1
),
width:
screenize
.
width
*
0.36
,
height:
screenize
.
height
*
0.8
,
...
...
@@ -107,7 +107,8 @@ class _RegisterState extends State<Register> {
const
SizedBox
(
width:
10
,
),
const
Text
(
"Nama"
),
const
Text
(
"Nama"
,
),
],
),
const
SizedBox
(
height:
5
,),
...
...
@@ -126,6 +127,12 @@ class _RegisterState extends State<Register> {
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
validator:
(
value
){
if
(
value
==
null
||
value
.
isEmpty
){
return
"Nama tidak boleh kosong"
;
}
return
null
;
},
),
)
],
...
...
@@ -154,6 +161,12 @@ class _RegisterState extends State<Register> {
child:
TextFormField
(
controller:
emailController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
){
if
(
value
==
null
||
value
.
isEmpty
){
return
"Email tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Email Valid"
,
hintStyle:
const
TextStyle
(),
...
...
@@ -189,6 +202,12 @@ class _RegisterState extends State<Register> {
child:
TextFormField
(
controller:
phoneController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
){
if
(
value
==
null
||
value
.
isEmpty
){
return
"Nomor handphone tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Nomor Handphone"
,
hintStyle:
const
TextStyle
(),
...
...
@@ -223,6 +242,12 @@ class _RegisterState extends State<Register> {
child:
TextFormField
(
controller:
usernameController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
){
if
(
value
==
null
||
value
.
isEmpty
){
return
"Username tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Username"
,
hintStyle:
const
TextStyle
(),
...
...
@@ -256,6 +281,12 @@ class _RegisterState extends State<Register> {
child:
TextFormField
(
controller:
pwController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
){
if
(
value
==
null
||
value
.
isEmpty
){
return
"Nama tidak boleh kosong"
;
}
return
null
;
},
obscureText:
_isObscure
,
decoration:
InputDecoration
(
labelText:
"Password"
,
...
...
lib/screen/contact_us/contact_us2.dart
View file @
85d2ba63
...
...
@@ -2,8 +2,6 @@ import 'package:flutter/material.dart';
import
'package:google_fonts/google_fonts.dart'
;
// import 'package:mcs_flutter/widget/botton.dart';
// import 'package:mcs_flutter/const/conts.dart';
import
'dart:convert'
;
import
'package:http/http.dart'
as
http
;
import
'package:medapp_eksad/api/contact_api.dart'
;
import
'package:medapp_eksad/widget/button_color.dart'
;
...
...
@@ -65,7 +63,7 @@ class ContactUs2 extends StatelessWidget {
flex:
1
,
),
SizedBox
(
height:
screenSize
.
height
*
0.
3
,
height:
screenSize
.
height
*
0.
2
,
child:
Text
(
'Go for the one who knows what they are doing, those who you share values with, '
'and those who will celebrate your success, and help you win over your biggest challenges. '
...
...
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