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

Can I trigger the chips bottom sheet with custom widget? #30

Open
xplatsolutions opened this issue May 16, 2023 · 0 comments
Open

Can I trigger the chips bottom sheet with custom widget? #30

xplatsolutions opened this issue May 16, 2023 · 0 comments

Comments

@xplatsolutions
Copy link

I am trying to just have a readonly TextField (or a button) where it will trigger the bottom sheet, is it possible with this package?

What I tried so far.

SmartSelect<String>.single(
                  choiceType: S2ChoiceType.chips,
                  choiceLayout: S2ChoiceLayout.wrap,
                  modalType: S2ModalType.bottomSheet,
                  modalHeader: false,
                  tileBuilder: (context, value) {
                    return FillProfileTextField(
                      labelText: 'gender',
                      // How to trigger the bottom sheet on TextField focus
                    );
                  },
                  title: 'gender',
                  selectedValue: 'non_binary',
                  choiceItems: options,
                  onChange: (state) => print(state.value)),
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