SelectDialog<T> class

Inheritance

Constructors

SelectDialog({Key? key, List<T>? itemsList, bool showSearchBox = true, void onChange(T)?, void onMultipleItemsChange(List<T>)?, T? selectedValue, List<T>? multipleSelectedValues, Future<List<T>> onFind(String text)?, SelectOneItemBuilderType<T>? itemBuilder, InputDecoration? searchBoxDecoration, String? searchHint, TextStyle? titleStyle, WidgetBuilder? emptyBuilder, ButtonBuilderType? okButtonBuilder, ErrorBuilderType? errorBuilder, WidgetBuilder? loadingBuilder, BoxConstraints? constraints, bool autofocus = false, bool alwaysShowScrollBar = false, int searchBoxMaxLines = 1, int searchBoxMinLines = 1, TextEditingController? findController})
const

Properties

alwaysShowScrollBar bool
final
autofocus bool
final
constraints BoxConstraints?
Max width: 90% of screen width Max height: 70% of screen height image image
final
emptyBuilder WidgetBuilder?
final
errorBuilder ErrorBuilderType?
final
findController TextEditingController?
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder SelectOneItemBuilderType<T>?
final
itemsList List<T>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingBuilder WidgetBuilder?
final
multipleSelectedValues List<T>?
final
okButtonBuilder ButtonBuilderType?
image
final
onChange → void Function(T)?
final
onFind Future<List<T>> Function(String text)?
final
onMultipleItemsChange → void Function(List<T>)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBoxDecoration InputDecoration?
image
final
searchBoxMaxLines int
final
searchBoxMinLines int
final
searchHint String?
final
selectedValue → T?
final
showSearchBox bool
image
final
titleStyle TextStyle?
image
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SelectDialogState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

showModal<T>(BuildContext context, {List<T>? items, String? label, T? selectedValue, List<T>? multipleSelectedValues, bool showSearchBox = true, Future<List<T>> onFind(String text)?, SelectOneItemBuilderType<T>? itemBuilder, void onChange(T)?, void onMultipleItemsChange(List<T>)?, InputDecoration? searchBoxDecoration, String? searchHint, Color? backgroundColor, TextStyle? titleStyle, WidgetBuilder? emptyBuilder, ButtonBuilderType? okButtonBuilder, WidgetBuilder? loadingBuilder, ErrorBuilderType? errorBuilder, BoxConstraints? constraints, bool autofocus = false, bool alwaysShowScrollBar = false, int searchBoxMaxLines = 1, int searchBoxMinLines = 1, TextEditingController? findController, bool useRootNavigator = false}) Future<T?>