flutter inputdecoration border
To add a border to an InputDecoration in Flutter, you can use the "border" property of the InputDecoration class. Here's an example of how you can do this:
```dart
TextField(
decoration: InputDecoration(
border: OutlineInputBorder(
borderSide: BorderSide(
color: , // set border color here
width: 1.0, // set border width here
),
border radius什么意思 borderRadius: BorderRadius.all(
Radius.circular(5.0), // set border radius here
),
),
),
),
```
In this example, the border color is set to grey, the border width is set to 1.0, and the border radius is set to 5.0. You can customize these values to achieve the desired border style.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论