在使用输入框获取焦点,弹出键盘的时候,会导致屏幕溢出,
return Scaffold(
appBar: AppBar(
title: Text('测试'),
centerTitle: true,
),
resizeToAvoidBottomInset: false, //输入框抵住键盘 内容不随键盘滚动
)
在使用输入框获取焦点,弹出键盘的时候,会导致屏幕溢出,
return Scaffold(
appBar: AppBar(
title: Text('测试'),
centerTitle: true,
),
resizeToAvoidBottomInset: false, //输入框抵住键盘 内容不随键盘滚动
)
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
You can find more information in our Privacy Policy and .