Skip to content

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

@xplatsolutions

Description

@xplatsolutions

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)),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions