我试图定义Input装饰来更改输入TextField下划线的颜色。但这不起作用。有人可以建议我在这里想念什么吗?
这是代码段:
decoration: InputDecoration(
hintText: 'Username',
hintStyle: TextStyle(color: Colors.white),
border: new UnderlineInputBorder(
borderSide: BorderSide(color: Colors.white,
width: 1.0, style: BorderStyle.none ),
),
Run Code Online (Sandbox Code Playgroud)