How to wait until keyboard is raised in flutter? - flutter

I'm using the scroll to index
library here
(When I press the reply button of the comment, the scroll is moved to the comment area where I pressed the reply button.)
Pressing the reply button activates the keyboard, which becomes strange because it moves before the keyboard rises.
I want to wait for the keyboard to come up when I press the button and let it move when it comes up.
I've tried hasFocus, but it seems to be a solution that has nothing to do with this problem.
flutter_keyboard_visibility is same.
What should I do?

Related

Softkeyboard's "check" button vs using .unfocus()

In this video I first click on a field within the first tab, then click the soft keyboard's "check" button. This hides the soft keyboard and takes the focus away from that field. I then navigate across tabs and back to the first. No field has the focus at this point. This is the expected behavior.
In the second iteration, I click in the notes field. Without closing the soft keyboard, I then click the submit button. That button calls FocusScope.of(context).unfocus(); which hides the soft keyboard and takes the focus away from the notes field (the teal border disappears). However, at this point I click on the next tab and the soft keyboard reappears. And when I click back the first tab the notes field once again has the focus.
Why does this happen?
What underlying code does the "check button" on the keyboard call and can I wire this up to the button rater than calling the .unfocus() method to get the expected result?
Edit: Still no explanation. The undesirable persistent keyboard does not occur on iOS.

Trigger keyboard show-up Flutter

I know most of the people have problems with keyboard and want it to go away, but I'm interested in it showing up. Basically, I want to trigger the keyboard show-up when I tap an element and then get the text I typed via RawKeyboard. Is there a way I can trigger the keyboard to show in Flutter? So far I understood you can do that only when you have a TextField.
Many thanks.

close/hide keyboard on tap outside keyboard in phone gap

i want to hide keyboard on tap event other than keyboard i.e. if i click outside keyboard or on button it should hide. I am using phonegap / cordova with jquery mobile.
please help.
I got solution for this.
I had issue with closing keyboard.
I added code as $("#id_of_textbox").blur();
in tap event on all buttons wherever possible on that screen.

Android - How to make keyboard come up on EditText

I have a view with an editText but the keyboard doesn't show up. After lots of research the only suitable thing I could find was how to make the keyboard appear when first loading the view. However, if the user closes the keyboard it seems there is no way to get it back.
How can I make the keyboard appear every time the user enters the editText field?
Whenever you click in the EditText box to type the text, then android keyboard automatically open.

What event activates the keyboard in mobile safari

So the focus event causes the soft keyboard to come up for input fields. Im trying to find a way to stop this occuring. The reason is, as some of you may know, a click event has a 300ms delay before anything happens.
To get around this, we have implemented Googles FastButton http://code.google.com/mobile/articles/fast_buttons.html its working good after a minor tweak to also prevent a second mousedown, but if we click on a button and go to a second page that also has a input textfield, the keyboard still pops up.
I've tried preventing the touchend, mousedown, mouseend, click, firing again, and that helps it by not having the flashing cursor on the textfield but the keyboard is still there. If i blur the field you still see the keyboard popping up then disapparing which is not acceptable.
Any ideas?
Hmm... have you considered disabling the fields with disabled="disabled" while loading, and only then enabling them? It might let you get around the initial focused state that launches the keyboard, so that you can blur first, then enable?