You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
I would like to add smartAuth requestHint() method to my authentication process. But everytime I call controller.text and apply the value I received from requestHint, later, when i call formKey.currentState!.validate() it returns that the field is not valid (the format of the input is the same as when I type if with the keyboard).
final smartAuth =SmartAuth();
final res =await smartAuth.requestHint(
isPhoneNumberIdentifierSupported:true,
isEmailAddressIdentifierSupported:false,
showCancelButton:true,
);
if (res !=null) {
finalPhoneNumber phone =awaitPhoneNumber.getRegionInfoFromPhoneNumber(res.id);
String parsableNumber =awaitPhoneNumber.getParsableNumber(phone);
phoneNumberController..text = parsableNumber ??'';
}
Cause:
This issue is due to bool isNotValid = true; (line 140 of intl_phone_number_input/lib/src/widgets/input_widget.dart (I tried to change manually this value to false in the file, I had no issue so the problem comes from here)).
This value is not accessible from the parents and can only be changed after a human interaction. Maybe you could create a custom TextInputController that have a method that can edit this value manually from parents.
The text was updated successfully, but these errors were encountered:
Problem:
I would like to add smartAuth requestHint() method to my authentication process. But everytime I call controller.text and apply the value I received from requestHint, later, when i call
formKey.currentState!.validate()
it returns that the field is not valid (the format of the input is the same as when I type if with the keyboard).Cause:
This issue is due to
bool isNotValid = true;
(line 140 of intl_phone_number_input/lib/src/widgets/input_widget.dart (I tried to change manually this value to false in the file, I had no issue so the problem comes from here)).This value is not accessible from the parents and can only be changed after a human interaction. Maybe you could create a custom TextInputController that have a method that can edit this value manually from parents.
The text was updated successfully, but these errors were encountered: