selection_sheet library

Adaptive, searchable selection sheets for Flutter.

Classes

SelectionItemState
Presentation state supplied to a per-sheet SelectionSheetItemBuilder.
SelectionSheet
Presents adaptive selection workflows as modal sheets.
SelectionSheetCancellationToken
Cooperative cancellation signal for one async page request.
SelectionSheetController
Controls a remote selection sheet or embedded selection view.
SelectionSheetFormField<T>
A native Flutter FormField that opens a single-selection sheet.
SelectionSheetItemData
Type-erased item information supplied to a global theme builder.
SelectionSheetLoadRequest
A request passed to a remote SelectionSheetPageLoader.
SelectionSheetMultiFormField<T>
A native Flutter FormField that opens a multi-selection sheet.
SelectionSheetPage<T>
One page returned by a remote selection loader.
SelectionSheetSearchFieldData
State and actions supplied to a custom search-field builder.
SelectionSheetSectionData
Information supplied to a section header builder.
SelectionSheetTheme
Visual defaults inherited by selection sheets below this widget.
SelectionSheetThemeData
Design tokens and global builders for SelectionSheetTheme.
SelectionSheetView<T>
An embeddable single- or multi-selection workflow.
SelectionSheetViewItem<T>
Optional reusable source and header configuration for modal helpers.

Enums

SelectionSheetLayout
Controls how selection items are arranged.
SelectionSheetPresentation
Controls which route style presents the selection sheet.

Typedefs

SelectionItemEquality<T> = bool Function(T first, T second)
Compares two items for selection equality.
SelectionItemKeyBuilder<T> = Object Function(T item)
Resolves the stable identity used for selection and page deduplication.
SelectionItemLabelBuilder<T> = String Function(T item)
Creates the text used for search, semantics, chips, and default item rows.
SelectionSheetDragHandleBuilder = Widget Function(BuildContext context)
Builds a custom drag handle for a selection sheet.
SelectionSheetEmptyBuilder = Widget Function(BuildContext context, String query)
Builds an empty state.
SelectionSheetErrorBuilder = Widget Function(BuildContext context, Object error, VoidCallback retry)
Builds an error state with a retry action.
SelectionSheetFieldValueBuilder<T> = Widget Function(BuildContext context, T? value)
Builds the value displayed by a single-selection form field.
SelectionSheetGlobalItemBuilder = Widget Function(BuildContext context, SelectionSheetItemData item)
Builds item rows for all selection sheets below a theme.
SelectionSheetItemBuilder<T> = Widget Function(BuildContext context, T item, SelectionItemState state)
Builds a row for a typed item in a selection sheet.
SelectionSheetLoadingBuilder = Widget Function(BuildContext context)
Builds a loading state.
SelectionSheetMultiFieldValueBuilder<T> = Widget Function(BuildContext context, List<T> value)
Builds the value displayed by a multi-selection form field.
SelectionSheetPageLoader<T> = Future<SelectionSheetPage<T>> Function(SelectionSheetLoadRequest request)
Loads one page of remote items.
SelectionSheetSearchFieldBuilder = Widget Function(BuildContext context, SelectionSheetSearchFieldData search)
Builds the search input shown above selection results.
SelectionSheetSectionBuilder<T> = Object? Function(T item)
Resolves the section key for an item.
SelectionSheetSectionHeaderBuilder = Widget Function(BuildContext context, SelectionSheetSectionData section)
Builds a sticky or non-sticky section header.
SelectionSheetSectionLabelBuilder = String Function(Object? section)
Creates a display label for a section key.
SelectionSheetSelectedChipBuilder<T> = Widget Function(BuildContext context, T item, String label, VoidCallback onDeleted)
Builds a selected-item chip for a typed item.