Commit d4faf32e authored by rizky ramadhan's avatar rizky ramadhan

test

parent ad68ee64
...@@ -125,7 +125,7 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -125,7 +125,7 @@ class _RegisterPicState extends State<RegisterPic> {
width: 10, width: 10,
), ),
const Text( const Text(
"Nama Rumah Sakit", "Nama Rumah ",
style: TextStyle(fontSize: 13), style: TextStyle(fontSize: 13),
), ),
], ],
...@@ -453,68 +453,64 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -453,68 +453,64 @@ class _RegisterPicState extends State<RegisterPic> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
// ===============password========== // ===============password==========
Row( Row(
children: [ children: [
Icon( Icon(
Icons.vpn_key_off_sharp, Icons.vpn_key_off_sharp,
color: Colors.grey[500], color: Colors.grey[500],
size: screenize.width * 0.01, size: screenize.width * 0.01,
), ),
const SizedBox( const SizedBox(
width: 10, width: 10,
), ),
const Text("Password", const Text(
style: TextStyle( "Password",
fontSize: 13 style: TextStyle(fontSize: 13),
), ),
), ],
],
),
const SizedBox(height: 5,),
SizedBox(
height: 60,
width: screenize.width * 0.2,
child: TextFormField(
controller: passwordController,
textAlign: TextAlign.start,
validator: (value){
if (value == null || value.isEmpty){
return "Password tidak boleh kosong";
}
return null;
},
obscureText: _isObscure,
decoration: InputDecoration(
labelText: "Password",
labelStyle: TextStyle(
fontSize: 13
),
suffixIcon: IconButton(
icon: Icon(_isObscure
? Icons.visibility
: Icons.visibility_off
), ),
onPressed: (){ const SizedBox(
setState(() { height: 5,
_isObscure = !_isObscure; ),
}); SizedBox(
}, height: 60,
), width: screenize.width * 0.2,
hintStyle: const TextStyle(), child: TextFormField(
border: OutlineInputBorder( controller: passwordController,
borderRadius: BorderRadius.circular(5.0) textAlign: TextAlign.start,
), validator: (value) {
), if (value == null || value.isEmpty) {
), return "Password tidak boleh kosong";
), }
// ===============akhir password========== return null;
},
obscureText: _isObscure,
decoration: InputDecoration(
labelText: "Password",
labelStyle: TextStyle(fontSize: 13),
suffixIcon: IconButton(
icon: Icon(_isObscure
? Icons.visibility
: Icons.visibility_off),
onPressed: () {
setState(() {
_isObscure = !_isObscure;
});
},
),
hintStyle: const TextStyle(),
border: OutlineInputBorder(
borderRadius:
BorderRadius.circular(5.0)),
),
),
),
// ===============akhir password==========
], ],
), ),
const SizedBox( const SizedBox(
width: 30, width: 30,
), ),
], ],
), ),
Column( Column(
...@@ -532,34 +528,38 @@ class _RegisterPicState extends State<RegisterPic> { ...@@ -532,34 +528,38 @@ class _RegisterPicState extends State<RegisterPic> {
const SizedBox( const SizedBox(
width: 10, width: 10,
), ),
const Text("Latitude & Longitude PIC", const Text(
style: TextStyle( "Latitude & Longitude PIC",
fontSize: 13 style: TextStyle(fontSize: 13),
),
), ),
], ],
), ),
const SizedBox(height: 5,), const SizedBox(
Container( height: 5,
height: 50,
width: screenize.width * 0.42,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(10),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(''),
Container(
height: 51,
child: ClipRRect(
borderRadius: BorderRadius.circular(10),
child: ElevatedButton(onPressed: (){}, child: Text('Set'))),
),
],
)
), ),
Container(
height: 50,
width: screenize.width * 0.42,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(10),
),
child: Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Text(''),
Container(
height: 51,
child: ClipRRect(
borderRadius:
BorderRadius.circular(10),
child: ElevatedButton(
onPressed: () {},
child: Text('Set'))),
),
],
)),
// ===============akhir password========== // ===============akhir password==========
], ],
), ),
......
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