awesome_select library

Classes

S2Builder<T>
collection of builder
S2Choice<T>
Choice data configuration
S2ChoiceConfig
Choices configuration
S2ChoiceStyle
Configure choices item style
S2Group<T>
choice group data
S2GroupConfig
Choices configuration
S2GroupHeader
Choice group header widget
S2GroupHeaderStyle
Configure choices group header style
S2GroupSort
Comparator function to sort the choice group enhanced with predefined function
S2ModalConfig
Modal configuration
S2ModalHeaderStyle
Configure modal option header style
S2ModalStyle
Configure modal style
S2MultiBuilder<T>
Builder collection of multiple choice widget
S2MultiState<T>
State for Multiple Choice
S2SingleBuilder<T>
Builder collection of single choice widget
S2SingleState<T>
State for Single Choice
S2State<T>
Smart Select State
S2Text
Text widget that supports highlight
S2Tile<T>
Default trigger/tile widget
S2TileChips
Chips tile/trigger widget
SmartSelect<T>
SmartSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input.

Enums

S2ChoiceControl
Where to place the control in widgets that use ListTile to position a control next to a label.
S2ChoiceLayout
Layout of choice item
S2ChoiceType
Type of choice input
S2ModalType
Target to open choices list

Typedefs

S2ChoiceListBuilder<T> = Widget? Function(S2Choice<T> choice)
A builder for choice list item widget
S2ChoiceSelect<A, B> = void Function(A state, B choice)
Callback for event choice select
S2ComplexWidgetBuilder<A, B> = Widget Function(BuildContext context, A value, B anotherValue)
A complex builder
S2ListWidgetBuilder<T> = List<Widget> Function(BuildContext context, T value)
A common list of widget builder
S2ModalClose<T> = void Function(T state, bool confirmed)
Callback for event modal closed
S2ModalOpen<T> = void Function(T state)
Callback for event modal opened
S2ModalWillClose<T> = Future<bool> Function(T state)
Callback for event modal will close
S2ModalWillOpen<T> = Future<bool> Function(T state)
Callback for event modal will open
S2SortComparator<E> = int Function(E a, E b)
Comparator function to use in List.sort
S2Validation<T> = String Function(T value)
Validation callback
S2WidgetBuilder<T> = Widget Function(BuildContext context, T value)
A common widget builder