Commit 0ea56a1f authored by Tohap Maruli Pasaribu's avatar Tohap Maruli Pasaribu
parents c54b2782 d7dd6547
...@@ -164,15 +164,16 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -164,15 +164,16 @@ class _RegisterPicState extends State<RegisterPic> {
const SizedBox( const SizedBox(
width: 30, width: 30,
), ),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
// ===============telepon rs========== // ===============nama pic=============
Row( Row(
children: [ children: [
Icon( Icon(
Icons.phone_android, Icons.drive_file_rename_outline,
color: Colors.grey[500], color: Colors.grey[500],
size: screenize.width * 0.01, size: screenize.width * 0.01,
), ),
...@@ -180,7 +181,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -180,7 +181,7 @@ class _RegisterPicState extends State<RegisterPic> {
width: 10, width: 10,
), ),
const Text( const Text(
"No Telepon Rumah Sakit", "Nama PIC",
style: TextStyle(fontSize: 13), style: TextStyle(fontSize: 13),
), ),
], ],
...@@ -194,28 +195,26 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -194,28 +195,26 @@ class _RegisterPicState extends State<RegisterPic> {
height: 60, height: 60,
width: screenize.width * 0.2, width: screenize.width * 0.2,
child: TextFormField( child: TextFormField(
controller: phoneRSController, controller: namePICController,
textAlign: TextAlign.start, textAlign: TextAlign.start,
validator: (value) {
if (value == null || value.isEmpty) {
return "Nomor Telepon Rumah Sakit tidak boleh kosong";
}
return null;
},
decoration: InputDecoration( decoration: InputDecoration(
labelText: labelText: "Nama PIC",
"Nomor Telepon Rumah Sakit",
labelStyle: TextStyle(fontSize: 13), labelStyle: TextStyle(fontSize: 13),
hintStyle: const TextStyle(),
border: OutlineInputBorder( border: OutlineInputBorder(
borderRadius: borderRadius:
BorderRadius.circular(5.0), BorderRadius.circular(5.0),
)), )),
validator: (value) {
if (value == null || value.isEmpty) {
return "Nama PIC tidak boleh kosong";
}
return null;
},
), ),
) )
], ],
), ),
// ===============akhir telepon rs========== // ===============akhir nama pic=============
], ],
), ),
], ],
...@@ -279,15 +278,16 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -279,15 +278,16 @@ class _RegisterPicState extends State<RegisterPic> {
const SizedBox( const SizedBox(
width: 30, width: 30,
), ),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
// ===============nama pic============= // ===============email pic==========
Row( Row(
children: [ children: [
Icon( Icon(
Icons.drive_file_rename_outline, Icons.email_outlined,
color: Colors.grey[500], color: Colors.grey[500],
size: screenize.width * 0.01, size: screenize.width * 0.01,
), ),
...@@ -295,7 +295,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -295,7 +295,7 @@ class _RegisterPicState extends State<RegisterPic> {
width: 10, width: 10,
), ),
const Text( const Text(
"Nama PIC", "Email PIC",
style: TextStyle(fontSize: 13), style: TextStyle(fontSize: 13),
), ),
], ],
...@@ -309,26 +309,27 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -309,26 +309,27 @@ class _RegisterPicState extends State<RegisterPic> {
height: 60, height: 60,
width: screenize.width * 0.2, width: screenize.width * 0.2,
child: TextFormField( child: TextFormField(
controller: namePICController, controller: emailPICController,
textAlign: TextAlign.start, textAlign: TextAlign.start,
validator: (value) {
if (value == null || value.isEmpty) {
return "Email PIC tidak boleh kosong";
}
return null;
},
decoration: InputDecoration( decoration: InputDecoration(
labelText: "Nama PIC", labelText: "Email PIC",
labelStyle: TextStyle(fontSize: 13), labelStyle: TextStyle(fontSize: 13),
hintStyle: const TextStyle(),
border: OutlineInputBorder( border: OutlineInputBorder(
borderRadius: borderRadius:
BorderRadius.circular(5.0), BorderRadius.circular(5.0),
)), )),
validator: (value) {
if (value == null || value.isEmpty) {
return "Nama PIC tidak boleh kosong";
}
return null;
},
), ),
) )
], ],
), ),
// ===============akhir nama pic============= // ===============akhir email pic==========
], ],
), ),
], ],
...@@ -339,7 +340,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -339,7 +340,7 @@ class _RegisterPicState extends State<RegisterPic> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
// ===============telepon pic========== // ===============telepon rs==========
Row( Row(
children: [ children: [
Icon( Icon(
...@@ -351,7 +352,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -351,7 +352,7 @@ class _RegisterPicState extends State<RegisterPic> {
width: 10, width: 10,
), ),
const Text( const Text(
"No Telepon PIC", "No Telepon Rumah Sakit",
style: TextStyle(fontSize: 13), style: TextStyle(fontSize: 13),
), ),
], ],
...@@ -365,16 +366,17 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -365,16 +366,17 @@ class _RegisterPicState extends State<RegisterPic> {
height: 60, height: 60,
width: screenize.width * 0.2, width: screenize.width * 0.2,
child: TextFormField( child: TextFormField(
controller: phonePICController, controller: phoneRSController,
textAlign: TextAlign.start, textAlign: TextAlign.start,
validator: (value) { validator: (value) {
if (value == null || value.isEmpty) { if (value == null || value.isEmpty) {
return "Nomor Telepon PIC tidak boleh kosong"; return "Nomor Telepon Rumah Sakit tidak boleh kosong";
} }
return null; return null;
}, },
decoration: InputDecoration( decoration: InputDecoration(
labelText: "Nomor Telepon PIC", labelText:
"Nomor Telepon Rumah Sakit",
labelStyle: TextStyle(fontSize: 13), labelStyle: TextStyle(fontSize: 13),
hintStyle: const TextStyle(), hintStyle: const TextStyle(),
border: OutlineInputBorder( border: OutlineInputBorder(
...@@ -385,21 +387,24 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -385,21 +387,24 @@ class _RegisterPicState extends State<RegisterPic> {
) )
], ],
), ),
// ===============akhir telepon pic========== // ===============akhir telepon rs==========
], ],
), ),
const SizedBox( const SizedBox(
width: 30, width: 30,
), ),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
// ===============email pic========== // ===============telepon pic==========
Row( Row(
children: [ children: [
Icon( Icon(
Icons.email_outlined, Icons.phone_android,
color: Colors.grey[500], color: Colors.grey[500],
size: screenize.width * 0.01, size: screenize.width * 0.01,
), ),
...@@ -407,7 +412,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -407,7 +412,7 @@ class _RegisterPicState extends State<RegisterPic> {
width: 10, width: 10,
), ),
const Text( const Text(
"Email PIC", "No Telepon PIC",
style: TextStyle(fontSize: 13), style: TextStyle(fontSize: 13),
), ),
], ],
...@@ -421,16 +426,16 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -421,16 +426,16 @@ class _RegisterPicState extends State<RegisterPic> {
height: 60, height: 60,
width: screenize.width * 0.2, width: screenize.width * 0.2,
child: TextFormField( child: TextFormField(
controller: emailPICController, controller: phonePICController,
textAlign: TextAlign.start, textAlign: TextAlign.start,
validator: (value) { validator: (value) {
if (value == null || value.isEmpty) { if (value == null || value.isEmpty) {
return "Email PIC tidak boleh kosong"; return "Nomor Telepon PIC tidak boleh kosong";
} }
return null; return null;
}, },
decoration: InputDecoration( decoration: InputDecoration(
labelText: "Email PIC", labelText: "Nomor Telepon PIC",
labelStyle: TextStyle(fontSize: 13), labelStyle: TextStyle(fontSize: 13),
hintStyle: const TextStyle(), hintStyle: const TextStyle(),
border: OutlineInputBorder( border: OutlineInputBorder(
...@@ -441,7 +446,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -441,7 +446,7 @@ class _RegisterPicState extends State<RegisterPic> {
) )
], ],
), ),
// ===============akhir email pic========== // ===============akhir telepon pic==========
], ],
), ),
], ],
......
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