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

improve phone number verification counter #846

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

AlaaElattar
Copy link
Contributor

@AlaaElattar AlaaElattar commented Jan 15, 2025

Changes

  • Updated phone number counter to count live.

Related Issues

Tested Scenarios

  • clicked verify and waited for the timer and was counting right.
  • clicked verify then leaved the page and return again, the counter was counting right.

image

image

Comment on lines 1085 to 1097
if (remainingTime > 0) {
String formattedTime;
if (remainingTime >= 60) {
int minutes = remainingTime ~/
60;
int seconds = remainingTime %
60;
formattedTime =
'${minutes}m ${seconds}s';
} else {
formattedTime =
'${remainingTime}s';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we export the logic here in an outer function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

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.

2 participants