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

[Fixed] Disable back button after "I am ready" button got pressed #169

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Mohit-Joshi-dev
Copy link

[Fixed] #128

Disabled back button

@Mohit-Joshi-dev
Copy link
Author

@guyluz11

@guyluz11
Copy link
Owner

Actually I meant to disable it while the confetti animation is ongoing.

@Mohit-Joshi-dev
Copy link
Author

Ok I'll make it as we start the confetti animation

@Mohit-Joshi-dev
Copy link
Author

@guyluz11 I have disable the nav pop as soon as user taps on "I am ready" and confetti starts.

lib/presentation/pages/intro_page.dart Show resolved Hide resolved
lib/presentation/pages/intro_page.dart Show resolved Hide resolved
@@ -25,6 +27,7 @@ class _ReadyForSessionOrganismState extends State<ReadyForSessionOrganism> {
bool confettiGotPlayed = false;

void onPressed() {
widget.onTapReady?.call();
Copy link
Owner

Choose a reason for hiding this comment

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

There is no reason for this method to get called each click.
Move it under the if statement.

Also the name is incorrect, see my other comment.

Comment on lines +244 to +245
return PopScope(
canPop: title != "work_timer",
Copy link
Owner

Choose a reason for hiding this comment

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

This change does not belong to this pr, please revert

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.

Disable back button after "I am ready" button got pressed
2 participants