Closed baeharam closed 5 years ago
Hi, the first thing that catches my eye is that you are adding the listener in the build function. You should not do that because this function is sometimes being called multiple times while the keyboard appears. Instead you should move the listener into the initState function inside the _LoginFormState class. Here is an example how to implement that:
@protected void initState() {
super.initState();
_keyboardVisibilityNotification.addNewListener(
onShow: _focusBloc.emitEvent(FocusEventOn()),
onHide: _focusBloc.emitEvent(FocusEventOff())
);
}
Also can you provide more information of what exactly is not working properly?
I will close this issue as there hasn't been any updates recently. If the problem still persists, please re-open
I'm implementing Login Form with Bloc pattern and I have to manage the size of LoginForm when keyboard is appeared. But It is not working...
What is the problem?