A lightweight alternative to the Scaffold widget for avoiding the on-screen software keyboard. Automatically scrolls obscured TextField child widgets into view on focus.
This patch tries to fix a problem where the didChangeMetrics is called when the phone is unlocked and then _resize makes wrong calculations and assumptions that the keyboard is now visible.
The details of the bug are really hard to explain. So I thought a sample code and some screencasts can do better than writing. Please take a look at the following sample:
This patch tries to fix a problem where the
didChangeMetrics
is called when the phone is unlocked and then_resize
makes wrong calculations and assumptions that the keyboard is now visible. The details of the bug are really hard to explain. So I thought a sample code and some screencasts can do better than writing. Please take a look at the following sample:Before the patch
After the patch