键盘覆盖Android上的屏幕输入 [英] Keyboard covering screen inputs on android

查看:54
本文介绍了键盘覆盖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

这篇关于键盘覆盖Android上的屏幕输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆