textfield focused border changed

This commit is contained in:
MohammadTaha Basiri 2022-01-07 12:48:11 +03:30
parent b80ab0718e
commit e75d750007
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class _DidvanTextFieldState extends State<DidvanTextField> {
Color _borderColor() { Color _borderColor() {
if (_focusNode.hasFocus) { if (_focusNode.hasFocus) {
return Theme.of(context).colorScheme.primary; return Theme.of(context).colorScheme.focusedBorder;
} else if (_error != null) { } else if (_error != null) {
return Theme.of(context).colorScheme.error; return Theme.of(context).colorScheme.error;
} }