responding to a keyboard appearing, scrolling up content?

1,047 views
Skip to first unread message

Seth Ladd

unread,
Jul 11, 2016, 12:05:08 PM7/11/16
to Flutter Dev
Hi,

I thought I remembered this question coming up before, but I couldn't find it. I'm asking for another developer who asked me. :)

Is there a code sample or pattern to scroll up an input field when a keyboard pops up? We wanted to ensure the selected input field is visible.

Thanks!

Adam Barth

unread,
Jul 11, 2016, 1:56:58 PM7/11/16
to Seth Ladd, Flutter Dev
This should happen automatically if the Input control is inside a Scrollable and has focus.  Do you have an example where its not happening?

Adam


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Todd Volkert

unread,
Jul 11, 2016, 2:05:13 PM7/11/16
to Adam Barth, Seth Ladd, Flutter Dev

Seth Ladd

unread,
Jul 11, 2016, 2:07:10 PM7/11/16
to Todd Volkert, Adam Barth, Flutter Dev, Arun Marsten
+ Arun

Arun Marsten

unread,
Jul 12, 2016, 10:56:08 AM7/12/16
to Todd Volkert, Seth Ladd, Adam Barth, Flutter Dev
Thanks for adding me Seth!

Here’s the code I was having trouble with


Basically it was a block of text with an input and a submit button at the bottom. However, when input was focused the keyboard would slide over it.

- Arun 

Eric Seidel

unread,
Jul 14, 2016, 1:46:30 PM7/14/16
to Arun Marsten, Todd Volkert, Seth Ladd, Adam Barth, Flutter Dev
 After further discussion in https://gitter.im/flutter/flutter we ended up filing https://github.com/flutter/flutter/issues/4899 to track.
Reply all
Reply to author
Forward
0 new messages