为什么当我在以下代码的TextFormField小部件中使用textAligin参数时,键盘无法正常工作。这意味着我无法设置焦点,并且键盘也没有显示。
new TextFormField(
/* textAligin: TextAlign.end, */
obscureText: obscure,
style: const TextStyle(
color: Colors.white,
),
decoration: new InputDecoration(
icon: new Icon(
icon,
color: Colors.white,
),
border: InputBorder.none,
hintText: hint,
hintStyle: const TextStyle(color: Colors.white, fontSize: 15.0),
contentPadding: const EdgeInsets.only(
top: 30.0, right: 30.0, bottom: 30.0, left: 5.0),
),
)