0% found this document useful (0 votes)
4 views1 page

K

The document describes a configuration for an IntlPhoneField widget in a Flutter application. It includes properties for displaying a dropdown icon, input decoration with hints and styling based on a dark theme, and an initial country code set to 'IND'. Additionally, it defines an onChanged callback to update a text editing controller with the complete phone number when the input changes.

Uploaded by

0127cs201053
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

K

The document describes a configuration for an IntlPhoneField widget in a Flutter application. It includes properties for displaying a dropdown icon, input decoration with hints and styling based on a dark theme, and an initial country code set to 'IND'. Additionally, it defines an onChanged callback to update a text editing controller with the complete phone number when the input changes.

Uploaded by

0127cs201053
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

IntlPhoneField(

showCountryFlag: false,
dropdownIcon: Icon(
Icons.arrow_drop_down,
color: darkTheme ? Colors.amber.shade400 :
Colors.grey,
),
decoration: InputDecoration(
hintText: "Phone Number",
hintStyle: TextStyle(
color: Colors.grey
),
filled: true,
fillColor: darkTheme ? Colors.black45 :
Colors.grey.shade200,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(40),
borderSide: BorderSide(
width: 0,
style: BorderStyle.none
)
),
),
initialCountryCode: 'IND',
onChanged: (text) => setState(() {
phonetexteditingcontrolller.text
=text.completeNumber;
})
),

You might also like