[英]A RenderFlex overflowed bottom flutter
In your Scaffold, set resizeToAvoidBottomInset
property to false.在您的脚手架中,将
resizeToAvoidBottomInset
属性设置为 false。
When the kayboard appears, it may hide something.当键盘出现时,它可能隐藏了一些东西。 To avoid this problem, you can wrap the entire screen widget in a
SingleChildScrollView
.为避免此问题,您可以将整个屏幕小部件包装在
SingleChildScrollView
中。 This will mate the screen scrollable.这将使屏幕可滚动。
A quick solution would be to block the widgets inside the Scaffold to resize themselves when the keyboard opens but this way,一个快速的解决方案是阻止脚手架内的小部件在键盘打开时调整自己的大小但是这样,
return Scaffold(
appBar: AppBar(
title: Text('Expenses Tracker'),
),
body: SingleChildScrollView( // wrap with a scrollable widget
child: Column(
children: <Widget>[
...... // other widgets
],
),
),
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.