2022-04-29 09:10:21 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
import 'package:nekoya_flutter/screens/login.dart';
|
|
|
|
import 'package:nekoya_flutter/screens/otp.dart';
|
|
|
|
|
|
|
|
class ForgotPassBody extends StatefulWidget {
|
|
|
|
const ForgotPassBody({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<ForgotPassBody> createState() => _ForgotPassBodyState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _ForgotPassBodyState extends State<ForgotPassBody> {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
2022-04-29 11:36:42 +02:00
|
|
|
padding: const EdgeInsets.all(25),
|
2022-04-29 09:10:21 +02:00
|
|
|
child: ListView(
|
|
|
|
children: [
|
|
|
|
Container(
|
2022-04-29 14:54:41 +02:00
|
|
|
child: Lottie.asset('assets/lottieanims/forgot_pass_body.json'),
|
2022-04-29 09:10:21 +02:00
|
|
|
),
|
|
|
|
Container(
|
2022-04-29 11:36:42 +02:00
|
|
|
padding: const EdgeInsets.only(top: 25),
|
|
|
|
child: const Text(
|
2022-04-29 09:10:21 +02:00
|
|
|
'Enter your email to receive instructions on how to reset your password.',
|
|
|
|
style: TextStyle(color: Colors.white),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
2022-04-29 11:36:42 +02:00
|
|
|
padding: const EdgeInsets.only(top: 25, bottom: 20),
|
2022-04-29 09:10:21 +02:00
|
|
|
child: Row(
|
2022-04-29 11:36:42 +02:00
|
|
|
children: const [
|
2022-04-29 09:10:21 +02:00
|
|
|
Icon(
|
|
|
|
Icons.mail_sharp,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
Text(' EMAIL', style: TextStyle(color: Colors.white)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
2022-04-29 11:36:42 +02:00
|
|
|
padding: const EdgeInsets.only(bottom: 20),
|
|
|
|
child: const TextField(
|
2022-04-29 09:10:21 +02:00
|
|
|
style: TextStyle(color: Colors.white),
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(),
|
|
|
|
hintText: 'EMAIL',
|
|
|
|
fillColor: Colors.white),
|
|
|
|
),
|
|
|
|
),
|
2022-04-29 11:36:42 +02:00
|
|
|
ElevatedButton(
|
|
|
|
style: ButtonStyle(
|
|
|
|
foregroundColor:
|
2022-04-29 14:59:47 +02:00
|
|
|
MaterialStateProperty.all(const Color(0xff8B0000)),
|
2022-04-29 11:36:42 +02:00
|
|
|
backgroundColor:
|
2022-04-29 14:59:47 +02:00
|
|
|
MaterialStateProperty.all(const Color(0xff8B0000)),
|
2022-04-29 11:36:42 +02:00
|
|
|
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(18.0),
|
2022-04-29 14:59:47 +02:00
|
|
|
side: const BorderSide(color: Colors.red)))),
|
2022-04-29 11:36:42 +02:00
|
|
|
onPressed: () {
|
2022-04-29 14:54:41 +02:00
|
|
|
Navigator.push(context,
|
|
|
|
MaterialPageRoute(builder: (context) => const Otp()));
|
2022-04-29 11:36:42 +02:00
|
|
|
},
|
|
|
|
child: const Text(
|
|
|
|
'Reset Password',
|
|
|
|
style: TextStyle(color: Colors.white, fontSize: 20),
|
2022-04-29 09:10:21 +02:00
|
|
|
),
|
|
|
|
),
|
2022-04-29 11:36:42 +02:00
|
|
|
ElevatedButton(
|
|
|
|
style: ButtonStyle(
|
|
|
|
foregroundColor:
|
2022-04-29 14:59:47 +02:00
|
|
|
MaterialStateProperty.all(const Color(0xff8B0000)),
|
2022-04-29 11:36:42 +02:00
|
|
|
backgroundColor:
|
2022-04-29 14:59:47 +02:00
|
|
|
MaterialStateProperty.all(const Color(0xff8B0000)),
|
2022-04-29 11:36:42 +02:00
|
|
|
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(18.0),
|
2022-04-29 14:59:47 +02:00
|
|
|
side: const BorderSide(color: Colors.red)))),
|
2022-04-29 11:36:42 +02:00
|
|
|
onPressed: () {
|
2022-04-29 14:54:41 +02:00
|
|
|
Navigator.push(context,
|
|
|
|
MaterialPageRoute(builder: (context) => const Login()));
|
2022-04-29 11:36:42 +02:00
|
|
|
},
|
|
|
|
child: const Text(
|
|
|
|
'Back to Login',
|
|
|
|
style: TextStyle(color: Colors.white, fontSize: 20),
|
2022-04-29 09:10:21 +02:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|