TogiCountryCodePicker
Parameters
Called when the text in the text field changes. The first parameter is string pair of (country phone code, phone number) and the second parameter is a boolean indicating whether the phone number is valid.
Modifier to be applied to the inner OutlinedTextField.
Boolean indicating if will auto detect the code from initial phone number
Boolean indicating whether the field is enabled.
Shape of the text field.
Whether to show the country code in the text field.
Whether to show the country flag in the text field.
TextFieldColors to be used for the text field.
The country to be used as a fallback if the user's country cannot be determined. Defaults to the United States.
Whether to show the placeholder number hint in the text field.
A set of 2 digit country codes to be included in the list of countries. Set to null to include all supported countries.
ImageVector to be used for the clear button. Set to null to disable the clear button. Defaults to Icons.Filled.Clear
an optional phone number to be initial value of the input field
Optional ISO-3166-1 alpha-2 country code to set the initially selected country. Note that if a valid initialCountryPhoneCode is provided, this will be ignored.
Optional country phone code to set the initially selected country. This takes precedence over initialCountryIsoCode.
An optional composable to be used as a label for input field
An optional TextStyle for customizing text style of phone number input field. Defaults to MaterialTheme.typography.body1
An optional KeyboardOptions to customize keyboard options.
An optional KeyboardActions to customize keyboard actions.
Whether to show error on field when number is invalid, default true.