natintosh / intl_phone_number_input

MIT License
163 stars 490 forks source link

flag with initial country code width #426

Open sunil-singh-chaudhary opened 4 months ago

sunil-singh-chaudhary commented 4 months ago

Hi, I've implemented this package, but I've noticed that the flag and country code (+91) take up more space than necessary. I think it would look better if the country code was wrapped around the flag. This would also reduce the gap between the +91 and the phone number. Is it possible to customize the layout of the flag and country code?

Package version intl_phone_number_input: ^0.7.4

Flutter version 3.19.6-0.0.pre.1 • channel stable dart version : 3.3.3 • DevTools 2.31.1

Screenshots

Screenshot_1713333115

and the gap is becuase of full size of flag and country code

Screenshot 2024-04-17 at 11 48 32 AM

Targeted platforms (please complete the following information): Android , IOS

sunil-singh-chaudhary commented 3 weeks ago

finally found a it

selectorConfig: const SelectorConfig( trailingSpace: false, //ADD THIS LINE leadingPadding: 2, selectorType: PhoneInputSelectorType.BOTTOM_SHEET, ),