Skip to content

Add barrierBlocksInteraction to allow pass-through outside taps#428

Open
liubou-s-inno wants to merge 1 commit intoAhmedLSayed9:masterfrom
liubou-s-inno:feature/non-blocking-barrier
Open

Add barrierBlocksInteraction to allow pass-through outside taps#428
liubou-s-inno wants to merge 1 commit intoAhmedLSayed9:masterfrom
liubou-s-inno:feature/non-blocking-barrier

Conversation

@liubou-s-inno
Copy link
Copy Markdown

Summary

  • Adds a new optional flag barrierBlocksInteraction to DropdownButton2 and DropdownButtonFormField2 (default: true to preserve existing behavior).
  • When set to false, outside taps can pass through to underlying widgets while still dismissing the currently open dropdown.

Motivation

Our use case is a web form with several multi-select dropdowns in a row.
Today, after selecting values in the first dropdown, opening the next dropdown requires two clicks: first click closes the currently open dropdown, second click opens the next one.
This repeats for each dropdown and feels cumbersome.
With this feature, users can immediately switch between dropdowns in one click, which improves flow for multi-select-heavy forms.

before.mov
after.mov

Also resolves #62

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.

when open dropdown button could l scroll main screen (if it is possible how could l do that)

1 participant