-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Cupertino route/transition should block touch events #54090
Comments
Hi @Renesanse |
Navigator.of(context).push(CupertinoPageRoute(builder: (_) => Container())); |
@Renesanse |
Because handling touch events during transitions and animations is bad practice. Users will be confused about actions in the app cause miss clicking happens during screen transitions. I am very surprised that you are don't know it and I need to explain to you why this is necessary. |
The premise is reasonable. We theoretically already do
|
@xster This is actually not blocking anything, it only blocks when the route is offstage or in the middle of back swipe |
Just letting folks know that I'm putting up a change for this soon 👍🏻 |
#104520 |
Huh, @chunhtai what was the issue here? Anything I can help with? |
I have not investigated what is wrong, but here is a more detailed stack trace
|
I have implemented couple of months ago this route, you can take a look at this and try to replicate its behaviour. https://github.com/machinescream/right/blob/main/lib/src/r_route.dart |
I think block any touch events during Cupertino transition is reasonable.
The text was updated successfully, but these errors were encountered: