PopupProps<T>.modalBottomSheet constructor
const
PopupProps<T>.modalBottomSheet ({
- Widget? title,
- FlexFit fit = FlexFit.tight,
- bool showSearchBox = false,
- ModalBottomSheetProps modalBottomSheetProps = const ModalBottomSheetProps(),
- TextFieldProps searchFieldProps = const TextFieldProps(),
- ScrollbarProps scrollbarProps = const ScrollbarProps(),
- ListViewProps listViewProps = const ListViewProps(),
- FavoriteItemProps<
T> favoriteItemProps = const FavoriteItemProps(), - Duration searchDelay = const Duration(seconds: 1),
- VoidCallback? onDismissed,
- EmptyBuilder? emptyBuilder,
- HcDropdownSearchPopupItemBuilder<
T> ? itemBuilder, - ErrorBuilder? errorBuilder,
- LoadingBuilder? loadingBuilder,
- bool showSelectedItems = false,
- HcDropdownSearchPopupItemEnabled<
T> ? disabledItemFn, - bool isFilterOnline = false,
- PopupBuilder? containerBuilder,
- BoxConstraints constraints = const BoxConstraints(maxHeight: 500),
- bool interceptCallBacks = false,
Implementation
const PopupProps.modalBottomSheet({
this.title,
this.fit = FlexFit.tight,
this.showSearchBox = false,
this.modalBottomSheetProps = const ModalBottomSheetProps(),
this.searchFieldProps = const TextFieldProps(),
this.scrollbarProps = const ScrollbarProps(),
this.listViewProps = const ListViewProps(),
this.favoriteItemProps = const FavoriteItemProps(),
this.searchDelay = const Duration(seconds: 1),
this.onDismissed,
this.emptyBuilder,
this.itemBuilder,
this.errorBuilder,
this.loadingBuilder,
this.showSelectedItems = false,
this.disabledItemFn,
this.isFilterOnline = false,
this.containerBuilder,
this.constraints = const BoxConstraints(maxHeight: 500),
this.interceptCallBacks = false,
}) : mode = Mode.modalBottomSheet,
menuProps = const MenuProps(),
dialogProps = const DialogProps(),
bottomSheetProps = const BottomSheetProps();