Skip to content

Commit

Permalink
fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mehsaandev committed Feb 28, 2025
1 parent 02c373c commit db6c0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ensemble/lib/widget/input/form_textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -528,20 +528,20 @@ class TextInputState extends FormFieldWidgetState<BaseTextInput>
return Utils.translateWithFallback(
'ensemble.input.validation.invalidEmailType',
'Please enter a valid email address');
}
}
} else if (widget._controller.inputType ==
InputType.ipAddress.name) {
if (!InputValidator.ipAddress(value)) {
return Utils.translateWithFallback(
'ensemble.input.validation.invalidIPAddressType',
'Please enter a valid IP Address');
}
}
} else if (widget._controller.inputType == InputType.phone.name) {
if (!InputValidator.phone(value)) {
return Utils.translateWithFallback(
'ensemble.input.validation.invalidPhoneType',
"Please enter a valid Phone Number");
}
}
}
}
return null;
Expand Down

0 comments on commit db6c0b6

Please sign in to comment.