我在一个 TextField
中有一条hintText
,我可以改变它的颜色,但无法改变它的大小。
我该如何更改它的大小?
以下是来自文档的代码示例:
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Enter a search term'
),
);
我在一个 TextField
中有一条hintText
,我可以改变它的颜色,但无法改变它的大小。
我该如何更改它的大小?
以下是来自文档的代码示例:
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Enter a search term'
),
);
TextField(
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Enter a search term',
hintStyle: TextStyle(fontSize: 20), // you need this
),
)