网页抖动:底部文字被截断 [英] flutter for web: text cut off at bottom
本文介绍了网页抖动:底部文字被截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在出现网页颤动的情况下,当我显示文本时,我试图在其底部插入文本,但是却无法正常工作。
With web flutter my text is cut at the bottom when I display text I tried to put padding but it doesn't work.
这个问题到处都是在TextField上
this problem this product everywhere even on the TextField
new Container(
width: menuRightWidthDesktop,
height: getSize == 0 ? heightHeaderDesktop : getSize == 1 ? heightHeaderTablette : heightHeaderMobile,
color: Colors.red,
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
new GestureDetector(
child: new Container(
color: Colors.indigoAccent,
child: new Text("Surfeur >"),
),
onTap: () {},
),
new GestureDetector(
child: new Text("Photographe >", ),
onTap: () {},
),
],
),
),
推荐答案
我一直遇到相同的问题,并通过将文本的 height 属性增加一个很小的值来解决了该问题
I've been having the same issue and solved it by increasing the height property of the text by a small value
Text("Surfeur >",
style: TextStyle(
height: 1.1,
),
),
这篇关于网页抖动:底部文字被截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文