TextFormField的textAligin参数使键盘无法工作

时间:2018-06-25 14:13:13

标签: dart flutter

为什么当我在以下代码的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),
    ),
)

0 个答案:

没有答案