salim-lachdhaf / dropdown_search

Simple and robust Dropdown with item search feature, making it possible to use an offline item list or filtering URL for easy customization.
MIT License
346 stars 334 forks source link

How to prevent click outside of Multi select bottom sheet ? #708

Closed PKReejesh closed 1 week ago

PKReejesh commented 1 week ago

Using PopupPropsMultiSelection.bottomSheet

But it allows click outside of the bottom sheet, allowing background items to be clicked. Is there any way to prevent or blur out the background items

Im using this exampld https://github.com/salim-lachdhaf/dropdown_search/blob/fa960038cf08df53da4513b4f96c1eb4b9a971cf/example/lib/bottom_sheets.dart#L112

salim-lachdhaf commented 1 week ago

it's a normal behavior of a bottomSheet and it's not related to package.

in your case use PopupPropsMultiSelection.modalBottomSheet which block access to background items.

Please don't hesitate to like the repo and the lib if it's useful for you.