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

Add property to disable pop up dialog country code #2

Open
YouSour opened this issue Jun 28, 2021 · 3 comments
Open

Add property to disable pop up dialog country code #2

YouSour opened this issue Jun 28, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@YouSour
Copy link

YouSour commented Jun 28, 2021

hi , how can i disable pop up dialog country code if i don't want user search an other country from defaultSelectedCountryIsoCode ? thank in advance

@deandreamatias deandreamatias changed the title disable pop up dialog country code on [form_builder_phone_field package] Add property to disable pop up dialog country code Jun 10, 2022
@deandreamatias
Copy link
Contributor

This should be implement. I don't know if external dependency allow this

@deandreamatias deandreamatias transferred this issue from flutter-form-builder-ecosystem/flutter_form_builder Jul 11, 2022
@deandreamatias deandreamatias added the good first issue Good for newcomers label Aug 14, 2022
@deandreamatias
Copy link
Contributor

Need created a property to disable popup and set in this code:

                  GestureDetector(
                    onTap: state.enabled || newProperty // <-- Here
                        ? () {
                            state.requestFocus();
                            isCupertinoPicker
                                ? state._openCupertinoCountryPicker()
                                : state._openCountryPickerDialog();
                          }
                        : null,

@mixdesign
Copy link

This would be useful, since someone wants to make the field more concise and leverage only on phone validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants