-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSCPickerState._onSelectedCountry #52
Comments
Try this
|
still makeing problem |
I had a similar error that occurred because when you change the value of country and state, the callbacks of its children state and city or just city in the case of the state, are called passing the NULL value as a parameter, this occurs because the state is /or city is reset to not have invalid combinations. To prevent the error you just need to create the 3 onchange callbacks, for country, city and state keeping in mind that they will be called passing the NULL parameter. sorry, translator inglish. I am Brazilian. |
E/flutter (20371): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
E/flutter (20371): #0 CSCPickerState._onSelectedCountry. (package:csc_picker/csc_picker.dart:741:35)
E/flutter (20371): #1 State.setState (package:flutter/src/widgets/framework.dart:1109:30)
E/flutter (20371): #2 CSCPickerState._onSelectedCountry (package:csc_picker/csc_picker.dart:723:5)
E/flutter (20371): #3 CSCPickerState._setDefaultCountry (package:csc_picker/csc_picker.dart:618:7)
E/flutter (20371): #4 CSCPickerState.getCountries (package:csc_picker/csc_picker.dart:647:5)
E/flutter (20371):
E/flutter (20371):
The text was updated successfully, but these errors were encountered: