
InputDecoration(
labelText: label,
floatingLabelBehavior: null,
hintText: hintText,
isDense:true,
suffixIcon: Padding(
padding: const EdgeInsetsDirectional.only(end:0),
child: Text("Currency",style: TextStyle(fontWeight: FontWeight.bold),),
),
contentPadding: EdgeInsets.symmetric(vertical: 5),
)我尝试在输入行附近对齐Currency单词,我尝试使用填充,但看起来没有效果
注意:因为我需要它来显示即使它是非焦点的,所以我使用suffixIcon
发布于 2020-09-18 13:06:36
最高高度可以工作
suffixIcon: Padding(
padding: const EdgeInsetsDirectional.only(top: 30),
//...发布于 2020-09-18 13:04:25
InputDecoration(
labelText: label,
floatingLabelBehavior: null,
hintText: hintText,
isDense:true,
suffixText: "Currency",
suffixStyle: TextStyle(fontWeight: FontWeight.bold),
contentPadding: EdgeInsets.symmetric(vertical: 5),
)https://stackoverflow.com/questions/63949550
复制相似问题