Skip to content

Commit 1aa5759

Browse files
committed
Corrected the emailErrorText.
1 parent d22645d commit 1aa5759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/form_builder_validators.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class FormBuilderValidators {
139139
}) =>
140140
(valueCandidate) =>
141141
true == valueCandidate?.isNotEmpty && !isEmail(valueCandidate.trim())
142-
? errorText ?? FormBuilderLocalizations.of(context).matchErrorText
142+
? errorText ?? FormBuilderLocalizations.of(context).emailErrorText
143143
: null;
144144

145145
/// [FormFieldValidator] that requires the field's value to be a valid url.

0 commit comments

Comments
 (0)