Choose a platform UI mode
masterThe package provides different constructors to control the visual style of the dropdown based on the platform:
- Material UI (Default): Use
DropdownSearch<T>(...)orDropdownSearch<T>.multiSelection(...). - Cupertino UI: Use
CupertinoDropdownSearch<T>(...)orCupertinoDropdownSearch<T>.multiSelection(...). - Adaptive UI: Use
AdaptiveDropdownSearch<T>(...)orAdaptiveDropdownSearch<T>.multiSelection(...)to automatically pick the appropriate UI for the current platform.
Tip: When using AdaptiveDropdownSearch, you can customize the PopupMode for each platform using AdaptivePopupProps.
AdaptiveDropdownSearch<T>(
popupProps: AdaptivePopupProps(
cupertinoProps: CupertinoPopupProps.bottomSheet(),
materialProps: PopupProps.dialog()
),
)