Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/.dart_tool/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7.5
219 changes: 219 additions & 0 deletions frontend/lib/Feature/Forgot Password/Forgot_Password_Screen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';

import '../../Core/Animation/Fade_Animation.dart';
import '../../Core/Colors/Hex_Color.dart';
import '../Login Screen/Login_Screen.dart';
import '../Pin Code/Pin_Code_Screen.dart';

enum FormData { Email }

class ForgotPasswordScreen extends StatefulWidget {
@override
State<ForgotPasswordScreen> createState() => _ForgotPasswordScreenState();
}

class _ForgotPasswordScreenState extends State<ForgotPasswordScreen> {
Color enabled = const Color.fromARGB(255, 63, 56, 89);
Color enabledtxt = Colors.white;
Color deaible = Colors.grey;
Color backgroundColor = const Color(0xFF1F1A30);
bool ispasswordev = true;

FormData? selected;

TextEditingController emailController = new TextEditingController();

@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
stops: const [0.1, 0.4, 0.7, 0.9],
colors: [
HexColor("#B4E4FF").withOpacity(0.8),
HexColor("#F7C8E0"),
HexColor("#B4E4FF"),
HexColor("#F7C8E0")
],
),
image: DecorationImage(
fit: BoxFit.cover,
colorFilter: ColorFilter.mode(
HexColor("#fff").withOpacity(0.2), BlendMode.dstATop),
image: NetworkImage(
'https://assets7.lottiefiles.com/private_files/lf30_GjhcdO.json',
),
),
),
child: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Card(
elevation: 5,
color: const Color.fromARGB(255, 236, 118, 174),
child: Container(
width: 400,
padding: const EdgeInsets.all(40.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
FadeAnimation(
delay: 0.8,
child: Lottie.network(
'https://assets7.lottiefiles.com/private_files/lf30_GjhcdO.json',
width: 100,
height: 100,
),
),
const SizedBox(
height: 10,
),
FadeAnimation(
delay: 1,
child: Container(
child: Text(
"Let us help you",
style: TextStyle(
color: Colors.white.withOpacity(0.9),
letterSpacing: 0.5),
),
),
),
const SizedBox(
height: 20,
),
FadeAnimation(
delay: 1,
child: Container(
width: 300,
height: 40,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12.0),
color: selected == FormData.Email
? enabled
: backgroundColor,
),
padding: const EdgeInsets.all(5.0),
child: TextField(
controller: emailController,
onTap: () {
setState(() {
selected = FormData.Email;
});
},
decoration: InputDecoration(
enabledBorder: InputBorder.none,
border: InputBorder.none,
prefixIcon: Icon(
Icons.email_outlined,
color: selected == FormData.Email
? enabledtxt
: deaible,
size: 20,
),
hintText: 'Email',
hintStyle: TextStyle(
color: selected == FormData.Email
? enabledtxt
: deaible,
fontSize: 12),
),
textAlignVertical: TextAlignVertical.center,
style: TextStyle(
color: selected == FormData.Email
? enabledtxt
: deaible,
fontWeight: FontWeight.bold,
fontSize: 12),
),
),
),
const SizedBox(
height: 25,
),
FadeAnimation(
delay: 1,
child: TextButton(
onPressed: () {
Navigator.pop(context);
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return const PinCodeVerificationScreen(
phoneNumber: '',
);
}));
},
child: Text(
"Continue",
style: TextStyle(
color: Colors.black,
letterSpacing: 0.5,
fontSize: 16.0,
fontWeight: FontWeight.bold,
),
),
style: TextButton.styleFrom(
backgroundColor: Color(0x95BDFFff),
padding: const EdgeInsets.symmetric(
vertical: 14.0, horizontal: 80),
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(12.0)))),
),
],
),
),
),

//End of Center Card
//Start of outer card
const SizedBox(
height: 20,
),

FadeAnimation(
delay: 1,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
const Text("Want to try again? ",
style: TextStyle(
color: Colors.grey,
letterSpacing: 0.5,
)),
GestureDetector(
onTap: () {
Navigator.pop(context);
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return LoginScreen();
}));
},
child: Text("Sign in",
style: TextStyle(
color: Colors.white.withOpacity(0.9),
fontWeight: FontWeight.bold,
letterSpacing: 0.5,
fontSize: 14)),
),
],
),
),
],
),
),
),
),
);
}
}
Loading