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
Hi @niinyarko is that been implemented?
i am stuck with this for long time.
I am setting the countryCode with the current location iso.But its not updating. Please find below code.
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,
),);
Would be nice to detect location with the locator / geolocation / locale package, and preselect country code based on the results.
The text was updated successfully, but these errors were encountered: