@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
reverse: true,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
'assets/images/sign_in.png',
height: 250.h,
fit: BoxFit.cover,
),
SizedBox(height: 10.h),
Padding(
padding: EdgeInsets.all(18.0.w),
child: Column(
children: [
Text(
"Welcome Back",
style: TextStyle(
fontSize: 20.sp,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 20.h),
const TextField(
decoration: InputDecoration(
hintText: 'Email',
label: Text(
'Email',
style: TextStyle(
color: Colors.blue,
),
),
),
),
SizedBox(height: 10.h),
const TextField(
obscureText: true,
decoration: InputDecoration(
hintText: 'Password',
label: Text(
'Password',
style: TextStyle(
color: Colors.blue,
),
),
),
),
SizedBox(height: 50.h),
SizedBox(
width: MediaQuery.of(context).size.width * 0.8,
height: 40.h,
child: ElevatedButton(
onPressed: () {},
child: Text(
'Sign In',
style: TextStyle(
fontSize: 18.sp,
fontWeight: FontWeight.bold,
),
),
),
),
SizedBox(height: 10.h),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Or",
style: TextStyle(fontSize: 14.sp, color: Colors.grey),
),
SizedBox(width: 10.w),
GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const SignUp(),
),
);
},
child: Text(
"Sign Up",
style: TextStyle(
fontSize: 14.sp,
color: Colors.blue,
fontWeight: FontWeight.bold,
),
),
),
],
),
],
),
)
],
),
),
);
}