DievasSearchWithDropdown<T> class
Search input composed with DievasDropdown and DievasMenuItem.
Tapping the input opens all matching items, including for an empty query. Selecting a result retains its label and releases focus. Outside dismissal clears an unselected query; Clear resets the results without closing an open menu. A zero gap joins the input and menu corners as in the Moon reference.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DievasSearchWithDropdown
Constructors
-
DievasSearchWithDropdown({Key? key, required List<
T> items, required String displayString(T), required ValueChanged<T> onSelected, String? hint, DievasSearchSize? size, bool filter(T item, String query)?, bool enabled = true, TextEditingController? controller, FocusNode? focusNode, T? initialValue, String? initialQuery, bool? show, ValueChanged<String> ? onChanged, ValueChanged<bool> ? onOpenChanged, Color? activeBorderColour, Color? inactiveBorderColour, Color? hoverBorderColour, Color? backgroundColour, BorderRadiusGeometry? borderRadius, double? distanceToTarget, double? maxHeight, bool showShadow = true, bool hasFloatingLabel = false, String? clearLabel, String? noResultsText}) -
const
Properties
- activeBorderColour → Color?
-
final
- backgroundColour → Color?
-
final
- borderRadius → BorderRadiusGeometry?
-
final
- clearLabel → String?
-
final
- controller → TextEditingController?
-
final
- displayString → String Function(T)
-
final
- distanceToTarget → double?
-
final
- enabled → bool
-
final
- filter → bool Function(T item, String query)?
-
final
- focusNode → FocusNode?
-
final
- hasFloatingLabel → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
final
- hoverBorderColour → Color?
-
final
- inactiveBorderColour → Color?
-
final
- initialQuery → String?
-
final
- initialValue → T?
-
final
-
items
→ List<
T> -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxHeight → double?
-
final
- noResultsText → String?
-
final
-
onChanged
→ ValueChanged<
String> ? -
final
-
onOpenChanged
→ ValueChanged<
bool> ? -
final
-
onSelected
→ ValueChanged<
T> -
Called after selection is retained in the input and the menu is dismissed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- show → bool?
-
final
- showShadow → bool
-
final
- size → DievasSearchSize?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DievasSearchWithDropdown< 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, int wrapWidth = 65}) → 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