Flutter:OutlineInputBorder 输入边框文字颜色

Flutter: OutlineInputBorder input border text color

我正在尝试为我的文本字段创建一个边框,例如:

TextFormField(
    style: TextStyle(
    color: Colors.black,
    fontSize: 16,
    ),
    decoration: InputDecoration(
        border: OutlineInputBorder(),
        labelText: 'username',
        hintStyle: TextStyle(
            color: Color(0xFF262AAA),
        ),
        fillColor: Color(0xFF262AAA),
        focusedBorder:OutlineInputBorder(
            borderSide: const BorderSide(color: Color(0xFF262AAA), width: 2.0),
            borderRadius: BorderRadius.circular(25.0),
        ),
    ),
),

它适用于边框颜色,但边框文本颜色无法更改。 https://prnt.sc/112fu69 检查这个 link。只显示白色的文字无法改变我们放置的颜色。

我该如何解决?

也许会添加大小框小部件。如果它不起作用请 post 所有代码我可以尝试一些东西。