Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hayat-tamboli committed Oct 2, 2022
2 parents 533ee4d + 4ff82e4 commit 1155d3e
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
"contributions": [
"code"
]
},
{
"login": "WaniAthar",
"name": "Athar Wani",
"avatar_url": "https://avatars.githubusercontent.com/u/83573286?v=4",
"profile": "http://www.waniathar.github.io",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

# InSync
Expand Down Expand Up @@ -86,6 +86,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/hayat-tamboli"><img src="https://avatars.githubusercontent.com/u/55529269?v=4?s=100" width="100px;" alt="Hayat Tamboli"/><br /><sub><b>Hayat Tamboli</b></sub></a><br /><a href="#design-hayat-tamboli" title="Design">🎨</a> <a href="https://github.com/InSync-HQ/InSync/commits?author=hayat-tamboli" title="Code">💻</a> <a href="#maintenance-hayat-tamboli" title="Maintenance">🚧</a> <a href="https://github.com/InSync-HQ/InSync/commits?author=hayat-tamboli" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/gitgudGR7"><img src="https://avatars.githubusercontent.com/u/62803645?v=4?s=100" width="100px;" alt="N.Raja Vara Siddi Varma"/><br /><sub><b>N.Raja Vara Siddi Varma</b></sub></a><br /><a href="https://github.com/InSync-HQ/InSync/commits?author=gitgudGR7" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/keerthi-rajan-s"><img src="https://avatars.githubusercontent.com/u/64079181?v=4?s=100" width="100px;" alt="Keerthi Rajan"/><br /><sub><b>Keerthi Rajan</b></sub></a><br /><a href="https://github.com/InSync-HQ/InSync/commits?author=keerthi-rajan-s" title="Code">💻</a></td>
<td align="center"><a href="http://www.waniathar.github.io"><img src="https://avatars.githubusercontent.com/u/83573286?v=4?s=100" width="100px;" alt="Athar Wani"/><br /><sub><b>Athar Wani</b></sub></a><br /><a href="https://github.com/InSync-HQ/InSync/commits?author=WaniAthar" title="Code">💻</a></td>
</tr>
</tbody>
<tfoot>
Expand Down
87 changes: 87 additions & 0 deletions lib/view/auth/forgot_password.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import 'package:flutter/material.dart';
import 'package:insync/widgets/button.dart';
import 'package:insync/widgets/input_field.dart';

class ForgotPage extends StatefulWidget {
const ForgotPage({Key? key}) : super(key: key);

@override
State<ForgotPage> createState() => _ForgotPageState();
}

class _ForgotPageState extends State<ForgotPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(backgroundColor: Colors.transparent,),
body: ListView(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(
height: 50,
),
Container(
height: 100,
width: 100,
margin: const EdgeInsets.only(left: 20),
decoration: BoxDecoration(
color: Theme.of(context).primaryColor,
borderRadius: BorderRadius.circular(50),
),
child: const Icon(
Icons.lock_person_rounded,
size: 60,
color: Colors.white,
),
),
Padding(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Container(
padding: const EdgeInsets.only(right: 143),
child: const Text(
"Forgot your Password?",
style: TextStyle(
fontSize: 40,
fontWeight: FontWeight.w700,
fontFamily: "fonts/GeneralSans-Bold.otf"),
),
),
const SizedBox(height: 10),
Container(
padding: const EdgeInsets.only(right: 30),
child: const Text(
"No problem. Just let us know your\nemail address and we'll email you a\npassword reset link that will allow you to reset your passoword.",
textAlign: TextAlign.left,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w400,
color: Colors.black54,
),
),
),
const SizedBox(height: 10),
const InputField(
label: "Email",
placeholder: "[email protected]",
keyboard: TextInputType.emailAddress,
),
const SizedBox(height: 10),
PrimaryButton(
buttonTitle: "Email password reset link",
onPressed: () {},
),
],
),
),
],
),
],
),
);
}
}
50 changes: 39 additions & 11 deletions lib/view/auth/login_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:insync/view/auth/create_account_overlay.dart';
import 'package:insync/widgets/button.dart';
import 'package:insync/widgets/dividing_or.dart';
import 'package:insync/widgets/input_field.dart';
import 'forgot_password.dart';

class LoginOverlay extends StatefulWidget {
const LoginOverlay({
Expand Down Expand Up @@ -65,17 +66,44 @@ class _LoginOverlayState extends State<LoginOverlay> {
),
),
const SizedBox(height: 32),
InputField(
label: "E-mail",
placeholder: "[email protected]",
keyboard: TextInputType.emailAddress,
controller: emailctr,
),
InputField(
label: "Password",
placeholder: "•••••••••••••",
password: true,
controller: passwordctr,
Stack(
children: [
Column(
children: [
InputField(
label: "E-mail",
placeholder: "[email protected]",
keyboard: TextInputType.emailAddress,
controller: emailctr,
),
InputField(
label: "Password",
placeholder: "•••••••••••••",
password: true,
controller: passwordctr,
),
],
),
Padding(
padding: const EdgeInsets.only(top: 102, left: 235),
child: GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const ForgotPage(),
),
);
},
child: Text("Forgot password?",
style: TextStyle(
color: Theme.of(context).primaryColor,
fontSize: 15,
fontWeight: FontWeight.w500,
)),
),
)
],
),
const SizedBox(height: 8),
PrimaryButton(
Expand Down

0 comments on commit 1155d3e

Please sign in to comment.