first step form login page
|
After Width: | Height: | Size: 247 B |
|
After Width: | Height: | Size: 946 B |
|
After Width: | Height: | Size: 302 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 409 B |
|
After Width: | Height: | Size: 537 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
@ -0,0 +1,171 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hexcolor/hexcolor.dart';
|
||||||
|
|
||||||
|
class Loginsreen extends StatelessWidget {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsetsDirectional.fromSTEB(30, 0, 0, 0),
|
||||||
|
alignment: Alignment.topLeft,
|
||||||
|
child:
|
||||||
|
Column(crossAxisAlignment: CrossAxisAlignment.start, children: <
|
||||||
|
Widget>[
|
||||||
|
Column(
|
||||||
|
children: <Widget>[
|
||||||
|
Container(
|
||||||
|
margin: EdgeInsetsDirectional.fromSTEB(0, 50, 0, 0),
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/images/login_icon.png',
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 10,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"LOGIN",
|
||||||
|
style: TextStyle(fontSize: 30, fontWeight: FontWeight.w800),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
SizedBox(
|
||||||
|
height: 10,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"Welcome to",
|
||||||
|
style: TextStyle(fontSize: 24),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
'Dr Sulaiman Al Habib',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 24, color: Theme.of(context).primaryColor),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"Doctor App",
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 26, color: Theme.of(context).primaryColor),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
width: 320,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
SizedBox(
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
TextFormField(
|
||||||
|
decoration: InputDecoration(
|
||||||
|
prefixIcon: Image.asset('assets/images/user_id_icon.png'),
|
||||||
|
hintText: 'Enter ID',
|
||||||
|
enabledBorder: OutlineInputBorder(
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||||
|
borderSide: BorderSide(color: Hexcolor('#CCCCCC')),
|
||||||
|
),
|
||||||
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(10.0)),
|
||||||
|
borderSide: BorderSide(color:Theme.of(context).primaryColor),
|
||||||
|
)
|
||||||
|
//BorderRadius.all(Radius.circular(20));
|
||||||
|
),
|
||||||
|
validator: (value) {
|
||||||
|
if (value.isEmpty) {
|
||||||
|
return 'Please enter some text';
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
TextFormField(
|
||||||
|
decoration: InputDecoration(
|
||||||
|
prefixIcon: Image.asset('assets/images/password_icon.png'),
|
||||||
|
hintText: 'Enter Password',
|
||||||
|
enabledBorder: OutlineInputBorder(
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||||
|
borderSide: BorderSide(color: Hexcolor('#CCCCCC')),
|
||||||
|
),
|
||||||
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(10.0)),
|
||||||
|
borderSide: BorderSide(color:Theme.of(context).primaryColor),
|
||||||
|
)
|
||||||
|
//BorderRadius.all(Radius.circular(20));
|
||||||
|
),
|
||||||
|
validator: (value) {
|
||||||
|
if (value.isEmpty) {
|
||||||
|
return 'Please enter some text';
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
TextFormField(
|
||||||
|
decoration: InputDecoration(
|
||||||
|
prefixIcon: Image.asset('assets/images/hospital_icon.png'),
|
||||||
|
hintText: 'Select Project',
|
||||||
|
enabledBorder: OutlineInputBorder(
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||||
|
borderSide: BorderSide(color: Hexcolor('#CCCCCC')),
|
||||||
|
),
|
||||||
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(10.0)),
|
||||||
|
borderSide: BorderSide(color:Theme.of(context).primaryColor),
|
||||||
|
)
|
||||||
|
//BorderRadius.all(Radius.circular(20));
|
||||||
|
),
|
||||||
|
validator: (value) {
|
||||||
|
if (value.isEmpty) {
|
||||||
|
return 'Please enter some text';
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: <Widget>[
|
||||||
|
Text("Remember me", style: TextStyle(fontSize: 16)),
|
||||||
|
RaisedButton(
|
||||||
|
onPressed: () {},
|
||||||
|
textColor: Colors.white,
|
||||||
|
padding: const EdgeInsets.all(0.0),
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(10),
|
||||||
|
side: BorderSide(color: Hexcolor('#CCCCCC'))),
|
||||||
|
child: Container(
|
||||||
|
decoration: const BoxDecoration(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(10)),
|
||||||
|
),
|
||||||
|
padding: const EdgeInsets.all(10.0),
|
||||||
|
height: 42,
|
||||||
|
width: 134,
|
||||||
|
child: const Text('LOG IN',
|
||||||
|
style: TextStyle(fontSize: 20)),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
])),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||