Coder Social home page Coder Social logo

Comments (7)

natintosh avatar natintosh commented on July 2, 2024

It seems context was null when you choose a new country, I'll try to work on a fix for this.

from intl_phone_number_input.

natintosh avatar natintosh commented on July 2, 2024

@illiashvedov I just published what I hope would be a fix to this

from intl_phone_number_input.

natintosh avatar natintosh commented on July 2, 2024

Please lemme know this update fixes this issue before I close this. Thanks

from intl_phone_number_input.

illiashvedov avatar illiashvedov commented on July 2, 2024

Hi, I tried now I do not have a provider error but the country does not change, I do not exclude that this is my local problem, possibly due to some other dependencies

from intl_phone_number_input.

natintosh avatar natintosh commented on July 2, 2024

Thanks for the feedback @illiashvedov, I'll be closing this.

from intl_phone_number_input.

codepushr avatar codepushr commented on July 2, 2024

Still having this issue:

NoSuchMethodError: The getter 'owner' was called on null.
Receiver: null
Tried calling: owner
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      Provider.of (package:provider/src/provider.dart:193:15)
#2      _InputWidgetState._loadCountries (package:intl_phone_number_input/src/widgets/input_widget.dart:278:39)
#3      _InputWidgetState.initState.<anonymous closure> (package:intl_phone_number_input/src/widgets/input_widget.dart:362:41)
#4      new Future.delayed.<anonymous closure> (dart:async/future.dart:318:39)
#5      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#6      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#7      _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

I'm on version ^0.4.0+2.

This is my setup with just 1 country:

InternationalPhoneNumberInput(
  onInputChanged: (PhoneNumber number) {
    print(number.phoneNumber);
  },
  onInputValidated: (bool value) {
    print(value);
  },
  textStyle: TextStyle(
    fontSize: 16,
  ),
  countries: ["AT"],
  ignoreBlank: false,
  autoValidate: false,
  initialValue: _number,
  inputBorder: InputBorder.none,
  textFieldController: phoneInputController,
),

from intl_phone_number_input.

natintosh avatar natintosh commented on July 2, 2024

It seems this has to do with Provider, I guess I'll have to replace it

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.