Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit drop down arrow functionality. #46

Open
damooola opened this issue Dec 28, 2024 · 0 comments
Open

Edit drop down arrow functionality. #46

damooola opened this issue Dec 28, 2024 · 0 comments

Comments

@damooola
Copy link

Hi there! Good stuff with CountryCodePicker. It's made my work my much easier.

Just wanted to request for a way to edit the dropdown arrow as I have to use the builder method just to achieve this.

See Below:
CountryCodePicker(
searchPadding: const EdgeInsets.symmetric(horizontal: 5),
dialogItemPadding: const EdgeInsets.all(5),
dialogSize: const Size(400, 500),
initialSelection: 'NG',
showFlag: false,
showFlagDialog: true,
searchStyle: GoogleFonts.montserrat(
color: const Color(0xFF3D003E), fontSize: 15),
dialogTextStyle: GoogleFonts.montserrat(
color: const Color(0xFF3D003E), fontSize: 15),
textStyle: GoogleFonts.montserrat(
color: const Color(0xFF3D003E), fontSize: 21),
builder: (countryCode) => Container(
width: 150,
padding: const EdgeInsets.all(8),
margin: const EdgeInsets.only(left: 30),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(countryCode!.dialCode!,
style: GoogleFonts.montserrat(
color: const Color(0xFF3D003E),
fontSize: 21)),
const SizedBox(width: 25),
//drop down arrow
SvgPicture.asset(
"assets/icons/chevron-down gray.svg"),
],
),
],
),
),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant