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

DropDown Arrow change functionality #42

Open
Shvet opened this issue Oct 25, 2024 · 0 comments
Open

DropDown Arrow change functionality #42

Shvet opened this issue Oct 25, 2024 · 0 comments

Comments

@Shvet
Copy link

Shvet commented Oct 25, 2024

If possible can add functionality to change drop down arrow? To just change arrow i need to user builder method.
Also you may need to add how to show image in custom widget as we have to specify package name from where assets are being showing in this case.

Here is Example in which i have to waste my time to just find how to use flags from package's assets.

  CountryCodePicker(
                            showDropDownButton: true,
                            showFlagDialog: true,
                            showFlag: true,
                            initialSelection: '+91',
                            onChanged: (value) {},
                            padding: EdgeInsets.zero,
                            margin: EdgeInsets.zero,
                            builder: (countryCode) {
                              return Container(
                                padding: const EdgeInsets.all(8.0),
                                child: Row(
                                  children: [
                                    Image.asset(
                                      countryCode!.flagUri!,
                                      width: 36,
                                      height: 24,
                                      package: 'country_code_picker',
                                    ),
                                    const SizedBox(width: 4.0),
                                    Text(
                                      '${countryCode.code} ${countryCode.dialCode}',
                                      style: Theme.of(context)
                                          .textTheme
                                          .bodyLarge!
                                          .copyWith(fontWeight: FontWeight.w500),
                                    ),
                                    const SizedBox(width: 4.0),
                                    Icon(
                                      Icons.arrow_drop_down_circle_rounded,
                                      size: 18,
                                      color: AppColors.secondaryColor,
                                    ),
                                  ],
                                ),
                              );
                            },
                          ),

I have to manully write package name in Image.asset(package:) as there is no documents on customisation.

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