【发布时间】:2019-02-19 01:19:52
【问题描述】:
如何将hintText 与TextField 的顶部对齐?
TextField (
decoration: InputDecoration(
hintText: 'align me to the top',
),
),
-
textAlign根本不会影响hintText。 -
TextStyle没有Align属性,因为可以使用hintStyle。
【问题讨论】:
如何将hintText 与TextField 的顶部对齐?
TextField (
decoration: InputDecoration(
hintText: 'align me to the top',
),
),
textAlign 根本不会影响 hintText。TextStyle 没有 Align 属性,因为可以使用 hintStyle。【问题讨论】:
TextField (
textAlign: TextAlign.center,
decoration: InputDecoration(
hintText: 'align me to the top',
),
),
【讨论】: