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

How to know when keyboard appear and disappear animations are finished #108

Open
aytunch opened this issue Mar 29, 2022 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@aytunch
Copy link

aytunch commented Mar 29, 2022

Currently keyboardVisibilityController.onChange fires at the beginning of appear and disappear animations.
I want to push the new screen after keyboard is fully invisible and I don't want to use a predefined duration which is not safe at all.

Is there a way to know this?

I saw a SO answer which might help:
https://stackoverflow.com/a/52140861/874886

Thank you

@MisterJimson
Copy link
Owner

Yeah that's not something this library does out of the box, but it looks like you could accomplish it with the details in that SO answer.

@aytunch
Copy link
Author

aytunch commented Mar 30, 2022

@MisterJimson do you have any plans to add this functionality in the future? Thanks

@MisterJimson MisterJimson added the enhancement New feature or request label Mar 30, 2022
@MisterJimson
Copy link
Owner

I could definitely see it as a good addition to this library, but I have no active plans at the moment.

@zolcsika73
Copy link

KeyboardVisibilityController.onChange.listen has three optional named arguments including a callback named onDone.
I thoughted this is the right one, but it seemly does nothing.
So, what about that?

@rasitayaz
Copy link

this would be a great feature. even though we can use a delayed wait as a workaround, it would be nice to be certain that it will work as expected for every device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants