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
5c06fa7d
Commit
5c06fa7d
authored
Sep 09, 2022
by
Fikri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merapikan register_pic
parent
5317d055
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
398 additions
and
349 deletions
+398
-349
register_pic.dart
lib/register_pic.dart
+398
-349
No files found.
lib/register_pic.dart
View file @
5c06fa7d
...
...
@@ -9,7 +9,6 @@ class RegisterPic extends StatefulWidget {
}
class
_RegisterPicState
extends
State
<
RegisterPic
>
{
bool
_isObscure
=
true
;
final
_formKey
=
GlobalKey
<
FormState
>();
...
...
@@ -34,17 +33,15 @@ class _RegisterPicState extends State<RegisterPic> {
image:
DecorationImage
(
image:
AssetImage
(
"assets/images/bg-medapp.png"
),
fit:
BoxFit
.
fill
,
)
),
)),
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.13
,
top:
screenize
.
height
*
0.05
,
bottom:
screenize
.
height
*
0.05
),
bottom:
screenize
.
height
*
0.05
),
child:
Stack
(
children:
[
Padding
(
padding:
EdgeInsets
.
symmetric
(
vertical:
screenize
.
height
*
0.15
),
padding:
EdgeInsets
.
symmetric
(
vertical:
screenize
.
height
*
0.15
),
// child: Container(
// decoration: BoxDecoration(
// color: const Color.fromARGB(255, 10, 116, 255),
...
...
@@ -65,7 +62,7 @@ class _RegisterPicState extends State<RegisterPic> {
left:
screenize
.
width
*
0.35
,
),
child:
Container
(
width:
screenize
.
width
*
0.
3
0
,
width:
screenize
.
width
*
0.
5
0
,
height:
screenize
.
height
*
1
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
...
...
@@ -77,23 +74,24 @@ class _RegisterPicState extends State<RegisterPic> {
),
boxShadow:
[
BoxShadow
(
color:
const
Color
.
fromARGB
(
255
,
10
,
116
,
255
).
withAlpha
(
60
),
color:
const
Color
.
fromARGB
(
255
,
10
,
116
,
255
).
withAlpha
(
60
),
blurRadius:
15.0
,
spreadRadius:
20.0
,
offset:
const
Offset
(
0.0
,
3.0
,
),
),],
),
],
),
child:
Form
(
key:
_formKey
,
child:
Container
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.045
,
top:
screenize
.
height
*
0.01
),
width:
screenize
.
width
*
0.36
,
top:
screenize
.
height
*
0.01
),
width:
screenize
.
width
*
0.50
,
height:
screenize
.
height
*
1
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -101,14 +99,20 @@ class _RegisterPicState extends State<RegisterPic> {
children:
[
const
Spacer
(),
Container
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.05
),
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.15
),
height:
screenize
.
width
*
0.03
,
child:
Image
.
asset
(
"assets/logo/medapp-logo.png"
),
),
const
SizedBox
(
height:
20
,),
const
SizedBox
(
height:
20
,
),
Row
(
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============nama rs=============
Row
(
children:
[
...
...
@@ -120,14 +124,15 @@ class _RegisterPicState extends State<RegisterPic> {
const
SizedBox
(
width:
10
,
),
const
Text
(
"Nama Rumah Sakit"
,
style:
TextStyle
(
fontSize:
13
),
const
Text
(
"Nama Rumah Sakit"
,
style:
TextStyle
(
fontSize:
13
),
),
],
),
const
SizedBox
(
height:
5
,),
const
SizedBox
(
height:
5
,
),
Row
(
children:
[
SizedBox
(
...
...
@@ -138,15 +143,13 @@ class _RegisterPicState extends State<RegisterPic> {
textAlign:
TextAlign
.
start
,
decoration:
InputDecoration
(
labelText:
"Nama Rumah Sakit"
,
labelStyle:
TextStyle
(
fontSize:
13
),
labelStyle:
TextStyle
(
fontSize:
13
),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
return
"Nama Rumah Sakit tidak boleh kosong"
;
}
return
null
;
...
...
@@ -156,9 +159,15 @@ class _RegisterPicState extends State<RegisterPic> {
],
),
// ===============akhir nama rs=============
const
SizedBox
(
height:
5
,),
],
),
const
SizedBox
(
width:
30
,
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============telepon rs==========
Row
(
children:
[
...
...
@@ -170,14 +179,15 @@ class _RegisterPicState extends State<RegisterPic> {
const
SizedBox
(
width:
10
,
),
const
Text
(
"No Telepon Rumah Sakit"
,
style:
TextStyle
(
fontSize:
13
),
const
Text
(
"No Telepon Rumah Sakit"
,
style:
TextStyle
(
fontSize:
13
),
),
],
),
const
SizedBox
(
height:
5
,),
const
SizedBox
(
height:
5
,
),
Row
(
children:
[
SizedBox
(
...
...
@@ -186,49 +196,56 @@ class _RegisterPicState extends State<RegisterPic> {
child:
TextFormField
(
controller:
phoneRSController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
return
"Nomor Telepon Rumah Sakit tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Nomor Telepon Rumah Sakit"
,
labelStyle:
TextStyle
(
fontSize:
13
),
labelText:
"Nomor Telepon Rumah Sakit"
,
labelStyle:
TextStyle
(
fontSize:
13
),
hintStyle:
const
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
),
)
],
),
// ===============akhir telepon rs==========
const
SizedBox
(
height:
5
,),
],
),
],
),
Row
(
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============alamat rs==========
Row
(
children:
[
Icon
(
Icons
.
phone_android
,
Icons
.
add_home_work_sharp
,
color:
Colors
.
grey
[
500
],
size:
screenize
.
width
*
0.01
,
),
const
SizedBox
(
width:
10
,
),
const
Text
(
"Alamat Rumah Sakit"
,
style:
TextStyle
(
fontSize:
13
),
const
Text
(
"Alamat Rumah Sakit"
,
style:
TextStyle
(
fontSize:
13
),
),
],
),
const
SizedBox
(
height:
5
,),
const
SizedBox
(
height:
5
,
),
Row
(
children:
[
SizedBox
(
...
...
@@ -237,29 +254,35 @@ class _RegisterPicState extends State<RegisterPic> {
child:
TextFormField
(
controller:
addressRSController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
return
"Nomor Alamat Rumah Sakit tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Nomor Alamat Rumah Sakit"
,
labelStyle:
TextStyle
(
fontSize:
13
),
labelText:
"Nomor Alamat Rumah Sakit"
,
labelStyle:
TextStyle
(
fontSize:
13
),
hintStyle:
const
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
),
)
],
),
// ===============akhir alamat rs==========
const
SizedBox
(
height:
5
,),
],
),
const
SizedBox
(
width:
30
,
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============nama pic=============
Row
(
children:
[
...
...
@@ -271,14 +294,15 @@ class _RegisterPicState extends State<RegisterPic> {
const
SizedBox
(
width:
10
,
),
const
Text
(
"Nama PIC"
,
style:
TextStyle
(
fontSize:
13
),
const
Text
(
"Nama PIC"
,
style:
TextStyle
(
fontSize:
13
),
),
],
),
const
SizedBox
(
height:
5
,),
const
SizedBox
(
height:
5
,
),
Row
(
children:
[
SizedBox
(
...
...
@@ -289,15 +313,13 @@ class _RegisterPicState extends State<RegisterPic> {
textAlign:
TextAlign
.
start
,
decoration:
InputDecoration
(
labelText:
"Nama PIC"
,
labelStyle:
TextStyle
(
fontSize:
13
),
labelStyle:
TextStyle
(
fontSize:
13
),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
return
"Nama PIC tidak boleh kosong"
;
}
return
null
;
...
...
@@ -307,10 +329,17 @@ class _RegisterPicState extends State<RegisterPic> {
],
),
// ===============akhir nama pic=============
const
SizedBox
(
height:
5
,),
// ===============telepon rs==========
],
),
],
),
Row
(
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============telepon pic==========
Row
(
children:
[
Icon
(
...
...
@@ -321,14 +350,15 @@ class _RegisterPicState extends State<RegisterPic> {
const
SizedBox
(
width:
10
,
),
const
Text
(
"No Telepon PIC"
,
style:
TextStyle
(
fontSize:
13
),
const
Text
(
"No Telepon PIC"
,
style:
TextStyle
(
fontSize:
13
),
),
],
),
const
SizedBox
(
height:
5
,),
const
SizedBox
(
height:
5
,
),
Row
(
children:
[
SizedBox
(
...
...
@@ -337,29 +367,34 @@ class _RegisterPicState extends State<RegisterPic> {
child:
TextFormField
(
controller:
phonePICController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
return
"Nomor Telepon PIC tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Nomor Telepon PIC"
,
labelStyle:
TextStyle
(
fontSize:
13
),
labelStyle:
TextStyle
(
fontSize:
13
),
hintStyle:
const
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
),
)
],
),
// ===============akhir telepon pic==========
const
SizedBox
(
height:
5
,),
],
),
const
SizedBox
(
width:
30
,
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============email pic==========
Row
(
children:
[
...
...
@@ -371,14 +406,15 @@ class _RegisterPicState extends State<RegisterPic> {
const
SizedBox
(
width:
10
,
),
const
Text
(
"Email PIC"
,
style:
TextStyle
(
fontSize:
13
),
const
Text
(
"Email PIC"
,
style:
TextStyle
(
fontSize:
13
),
),
],
),
const
SizedBox
(
height:
5
,),
const
SizedBox
(
height:
5
,
),
Row
(
children:
[
SizedBox
(
...
...
@@ -387,30 +423,35 @@ class _RegisterPicState extends State<RegisterPic> {
child:
TextFormField
(
controller:
emailPICController
,
textAlign:
TextAlign
.
start
,
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
validator:
(
value
)
{
if
(
value
==
null
||
value
.
isEmpty
)
{
return
"Email PIC tidak boleh kosong"
;
}
return
null
;
},
decoration:
InputDecoration
(
labelText:
"Email PIC"
,
labelStyle:
TextStyle
(
fontSize:
13
),
labelStyle:
TextStyle
(
fontSize:
13
),
hintStyle:
const
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
),
)
],
),
// ===============akhir email pic==========
const
SizedBox
(
height:
5
,),
],
),
],
),
Row
(
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
// ===============password==========
Row
(
children:
[
...
...
@@ -467,18 +508,25 @@ class _RegisterPicState extends State<RegisterPic> {
),
),
// ===============akhir password==========
],
),
],
),
const
Spacer
(
flex:
4
,
),
Row
(
Container
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.10
),
height:
screenize
.
width
*
0.03
,
child:
Row
(
children:
[
SizedBox
(
height:
30
,
width:
screenize
.
width
*
0.09
,
child:
ElevatedButton
(
onPressed:
()
{
onPressed:
()
{
Navigator
.
pushNamed
(
context
,
'/login'
);
},
child:
const
Text
(
"LOGIN"
),
...
...
@@ -529,6 +577,7 @@ class _RegisterPicState extends State<RegisterPic> {
)
],
),
),
const
Spacer
(
flex:
4
,
)
...
...
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