Im trying to change the color of my outline border . When focus on it ,it get a default color I think and I wanna change that to black but dont now how to doing that .
This is my widget :
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(top: 8),
padding: EdgeInsets.all(8),
child: Row(
children: <Widget>[
Expanded(
child: TextField(
controller: _controller,
decoration: InputDecoration( hintText: 'Send a message',border: OutlineInputBorder( borderRadius:
const BorderRadius.all(
const Radius.circular(40.0),
),
),
),
onChanged: (value) {
setState(() {
_enteredMessage = value;
});
},
),
),
IconButton(
color: Colors.black,
icon: Icon(
Icons.send,
),
onPressed: _enteredMessage.trim().isEmpty ? null : _sendMessage,
)
],
),
);
}
}
So when user try to inout some text the radius should be black .Hope anyone can help thanks .