键盘覆盖Android上的屏幕输入

问题描述:

我已经为Android和iOS创建了一个移动应用.键盘覆盖输入小部件时出现问题.

I have created a mobile app for android and iOS. I have an issue with the keyboard covering the input widgets.

我在另一篇文章中建议添加以下代码.正如您从图像中看到的那样,它无效.

I added the code below as suggested in another post. It didn't work as you can see from the image.

return Scaffold(
      resizeToAvoidBottomPadding: true,
      appBar: AppBar(

如何使它正常工作?

要解决此问题,请尝试使用 singleChildScrollView 包裹支架的主体,并确保其为 column singleChildScrollView

To solve it try to wrapping the body of your scaffold with singleChildScrollView and make sure it is column the child of the singleChildScrollView