相关疑难解决方法(0)

无法更改TextField边框颜色

我试图通过BorderSide更改我的TextField边框的颜色,但它不起作用.

这是我的代码.

new TextField(
        decoration: new InputDecoration(
            border: new OutlineInputBorder(
              borderSide: new BorderSide(color: Colors.teal)
            ),
            hintText: 'Tell us about yourself',
            helperText: 'Keep it short, this is just a demo.',
            labelText: 'Life story',
            prefixIcon: const Icon(Icons.person, color: Colors.green,),
            prefixText: ' ',
            suffixText: 'USD',
            suffixStyle: const TextStyle(color: Colors.green)),
       )
)
Run Code Online (Sandbox Code Playgroud)

这是我的屏幕截图

dart flutter

31
推荐指数
7
解决办法
3万
查看次数

标签 统计

dart ×1

flutter ×1