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

Enhance widget customization #165

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

IguJl15
Copy link
Contributor

@IguJl15 IguJl15 commented Jul 18, 2024

Increase customization of the Country Code Dropdown Form Field:

Fixes my own issue/suggestion

  • New short-hand property to show or hide the flag icon on both dropdown value and list (inspired on CountryDropdown how to disable the showFlag?  #156)

  • Added some dropdown field style properties to enhance customization

  • Turn onCountrySelected property nullable, allowing the input to be disabled.
    Usage:

    CountryDropdown(
      onCountrySelected: null, // Dropdown button disabled
      initialCountryData: PhoneCodes.getPhoneCountryDataByCountryCode(
        'RU',
      ),
    )
    

Disabled

Screencast.from.2024-07-17.23-40-54.webm

Show flag

Screencast.from.2024-07-17.23-42-49.webm

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

Successfully merging this pull request may close these issues.

Enhance widget customization: shortcut to hide flag and add disabled state
1 participant