vanshg395 / intl_phone_field

A customised Flutter TextFormField to input international phone number along with country code.
https://pub.dev/packages/intl_phone_field
MIT License
177 stars 507 forks source link

fix issue of no custom validation without interaction #298

Closed hashimsayed0 closed 11 months ago

hashimsayed0 commented 1 year ago

this PR is to fix the bug mentioned in Issue #292. It removes the condition that checks if autovalidate mode is set to always before initializing value and validatorMessage.

navin-zignuts commented 1 year ago

Hello @hashimsayed0 Hope you are doing well! I am facing the same issue in the latest version 3.2.0. Without interaction to input phone field it does not show the validation message, like in mentioned issue above , on Button tap event I tried to show the validation message (At initial there is not any interaction with phone field or no any values input into it ) it's not working

However, I used the version 3.1.0 with the use of invalidNumberMessage is working fine as expected. but still the latest version have the issue

Looking for any solutions or updates

Thanks in advanced

FaezzalHasyiemie commented 1 year ago

@hashimsayed0 thanks! it fixed my problem of skipping validation if theres no problem, but now im making a form where some field is prefilled and cant be changed if user is logged in. i set the field enabled to false, and gave the text controller the initial value. it displays well but the problem now is validation error thinks nothing is filled in, making user cant progress

github-actions[bot] commented 1 year ago

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 30 days. If you believe this PR is still relevant, please comment to keep it open. Thank you for your contributions.