Coder Social home page Coder Social logo

Comments (6)

honzasima avatar honzasima commented on July 4, 2024 2

for fix use older dependency, problem is not in this package:

dependency_overrides:
libphonenumber_plugin: 0.2.3

from intl_phone_number_input.

orangeyong avatar orangeyong commented on July 4, 2024

I face this issue too, happen when the input comes without country code, no issue before this.

And I have made a few assumption on the input, and found out the bug below
from flutter's getRegionInfoFromPhoneNumber(phoneNumber, isoCode)

  1. if i set the isoCode to "MY" => return positive result
    1.1 but when I call for result.dialCode => I get "MY"
    1.2 tried to insert "" as empty string for countryCode => exception
    1.3 tried to insert phoneNumber without +60 (the country code) => exception

Printing the parsed phone number props property returns [+6011xxxxxxxx, MY, MY]

My guess is that the new PhoneNumberKit is validating wrong input field, and thus returning wrong

from intl_phone_number_input.

amirbahrawy avatar amirbahrawy commented on July 4, 2024

for fix use older dependency, problem is not in this package:

dependency_overrides: libphonenumber_plugin: 0.2.3

it worked well but is there another solution or this the only thing i can do ?

from intl_phone_number_input.

sangmoonhwang avatar sangmoonhwang commented on July 4, 2024

For fix use older version dependency

dependency_overrides: libphonenumber_plugin: 0.2.3

This does not sounds like a long-term fix since we would be stuck with the old dependency and its transitive dependencies.
Is there a better way to solve this issue or should we just wait for the next libphonenumber_plugin version?

from intl_phone_number_input.

chiptech-mitchell avatar chiptech-mitchell commented on July 4, 2024

I used the last version of intl_phone_number_input (0.7.3+1) and overrode the libphonenumber_plugin to the latest (0.3.1) and the seems to be the best fix until the PR #375 is merged and new version is released.

from intl_phone_number_input.

osamamohammed98 avatar osamamohammed98 commented on July 4, 2024

for fix use older dependency, problem is not in this package:

dependency_overrides: libphonenumber_plugin: 0.2.3

thanks for your help
it's work with me

from intl_phone_number_input.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.