search_choices library
Highly versatile Widget to search through a single or multiple choices list in a dialog box or a menu. Supports pagination and future/API/webservice searches with sort and filter. Examples can be found in the example subfolder. Please raise issues here: https://github.com/lcuis/search_choices/issues
Classes
-
DropdownDialog<
T> - Class mainly used internally to display the available choices. Cannot be made private because of automated testing.
- NotGiven
- Class mainly used internally to set a value to NotGiven by its type
-
PointerThisPlease<
T> - Class used to send pointers to variables instead of the variable directly so that the called function can update the variable value
-
SearchChoices<
T> - SearchChoices widget that allows the opening of a searchable dropdown. Use the SearchChoices.single factory if only one item needs to be selected. Use the SearchChoices.multiple factory if user must be able to select multiple items at once.
-
Tuple2<
E1, E2> - Class used internally as a tuple with 2 items.
-
Tuple3<
E1, E2, E3> - Class used internally as a tuple with 3 items.
Constants
- kAlignedButtonPadding → const EdgeInsetsGeometry
- kUnalignedButtonPadding → const EdgeInsets
Functions
-
prepareWidget(
dynamic object, {dynamic parameter = const NotGiven(), Function? updateParent, BuildContext? context, Function? stringToWidgetFunction}) → Widget? -
Function mainly called internally to transform an
object
(either a Widget, a String or a Function returning a Widget or a String) to a Widget If a Function is passed asobject
, it can have as arguments either nothing or: