Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added UI for forgot-password step 1 2 and 3 #107

Closed
wants to merge 6 commits into from

Conversation

divy-arpit
Copy link
Collaborator

Fixes #18

Description

Added UI for the forgot password screen

Type of Change: (Delete irrelevant options)

  • Code

  • User Interface

Code/Quality Assurance Only (Delete irrelevant options)

  • New feature (non-breaking change which adds functionality pre-approved by mentors)

How Has This Been Tested?

Tested on local machine.

Checklist:

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials
  • I have commented my code or provided relevant documentation, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged
  • I have added one/more required dependencies
  • I have formatted the code using dart format (dartfmt)

Code/Quality Assurance

  • My changes generate no new warnings
  • My PR currently breaks something (fix or feature that would cause existing functionality to not work as expected)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Mention the dependencies/packages/plugins that have been added (if any)

Android Emulator - Pixel_4_XL_API_30_5554 18-02-2021 12_47_28
Android Emulator - Pixel_4_XL_API_30_5554 18-02-2021 12_47_52

@divy-arpit divy-arpit marked this pull request as draft February 18, 2021 07:19
@divy-arpit divy-arpit changed the title added UI for forgot-password step 1 and 3 added UI for forgot-password step 1 2 and 3 Feb 18, 2021
@divy-arpit divy-arpit marked this pull request as ready for review February 27, 2021 05:29
Copy link
Member

@werainkhatri werainkhatri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. reduce the size of Step 2/3 in the enter otp step
  2. Add a resend button, add its fake functionality and center align the resend and verify buttons. refer the design. Add a timer as in the design. (Your can refer this) Discuss with the designer.
  3. Add a back button, add the icon and change the title of the screen (to Verify your screen) according to the design.
  4. Add horizontal padding to the fields in reset password step
  5. Add the route to main.dart (in routes), its name to strings.dart and login.dart (navigator.of(context).pushNamed())

),
rightButtonFn: () {
setState(() {
otpEntered = otpEntered.substring(0, otpEntered.length - 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error is thrown here (RangeError) when you click on right button (backspace) and otpEntered is empty. Add a check or something to prevent that.

Comment on lines 473 to 475
if (bottom > height * 0.25) {
_scrollController.animateTo(
bottom - height * 0.25,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be 0.5 instead of 0.25

@@ -163,6 +163,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
js:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert the changes made in pubspe.lock
Also pull the latest code and remove the conflicts

changed the size of 2/3 and removed RangeError
@TreavVasu TreavVasu closed this Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ForgetPassword Screen -> UI and Linking
4 participants