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
i am using gelocator plugin to get the current location. So, based on that i need to make the initialSelection corresponding to the location countryISO. But when i tried its not updating.
Can i know what could be wrong?
Below is my code to set the initialSelection.
List<Placemark> p = await geolocator.placemarkFromCoordinates(
_currentPosition.latitude, _currentPosition.longitude);
Placemark place = p[0];
setState(() {
countryCode = place.isoCountryCode;
});
InternationalPhoneInput(
onPhoneNumberChange: _onPhoneNumberChanged,
initialSelection: countryCode,
errorText:"Please type a valid phone number",
errorMaxLines:4,
),);
The text was updated successfully, but these errors were encountered:
i am using gelocator plugin to get the current location. So, based on that i need to make the initialSelection corresponding to the location countryISO. But when i tried its not updating.
Can i know what could be wrong?
Below is my code to set the initialSelection.
The text was updated successfully, but these errors were encountered: