-
Notifications
You must be signed in to change notification settings - Fork 71
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
Remove KeyboardVisibilityListener dependency and add WoltKeyboardClosureListenerMixin #303
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
with TickerProviderStateMixin { | ||
with | ||
TickerProviderStateMixin, | ||
WidgetsBindingObserver, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can delete this WidgetsBindingObserver mixin here
/// was previously visible and is now hidden, it increments the event ID and updates | ||
/// the notifier. | ||
@override | ||
void didChangeMetrics() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first i too used this in my first approach.
But then I saw that the MediaQuery is already listening to it.
And its enough just to listen to changes in didChangeDependencies() with MediaQuery.
I don't know what are the implications of this, maybe there arent any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is informative and useful. Thanks. 🚀
Description
This PR introduces the
WoltKeyboardClosureListenerMixin
mixin and removes the FlutterKeyboardVisibility package dependency. The purpose of this mixin is to track the visibility of the soft keyboard by monitoring the changes in the system's view insets and using the WidgetsBindingObserver.fix_keyboard_visibility.mp4
ios_keyboard.mov
Related Issues
#210
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?