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
The initialCountryCode property of the intl_phone_field package is documented to accept both 2-letter ISO country codes (e.g., 'IN') and country dial codes (e.g., '+91'). However, when a country dial code is provided, the field does not initialize correctly and instead defaults to an incorrect or unspecified value.
The initialCountryCode property of the intl_phone_field package is documented to accept both 2-letter ISO country codes (e.g., 'IN') and country dial codes (e.g., '+91'). However, when a country dial code is provided, the field does not initialize correctly and instead defaults to an incorrect or unspecified value.
Code Snippet for Reference:
IntlPhoneField(
initialCountryCode: '+91',
decoration: InputDecoration(
labelText: 'Phone Number',
),
onChanged: (phone) {
print('Phone number changed: ${phone.completeNumber}');
},
);
The text was updated successfully, but these errors were encountered: