DropDownGridView class

The basic implementation of the drop-down menu. It is implemented internally using GridView and supports single-selection and multi-selection operations.

Inheritance

Constructors

const

Properties

actualHeight double
The height of the DropDownMenu content view
no setteroverride
actualWidth double?
The width of the DropDownMenu content view
no setteroverride
boxStyle DropDownBoxStyle
Style of the drop-down menu grid
final
btnWidget Widget?
Button component of the drop-down menu content body in the multi-select state
final
buttonStyle DropDownButtonStyle
The style of button component of the drop-down menu content body in the multi-select state
final
confirmWidget Widget?
The confirmation button component of the drop-down menu content body in the multi-select state
final
controller DropDownController
Controller of the drop-down menu
final
crossAxisCount int
The number of columns of the sub-items of the drop-down menu content body
final
crossAxisSpacing double
Column spacing of the sub-items of the drop-down menu content body
final
dataController DropDownGridDataController?
Data controller of the drop-down menu content body
final
hashCode int
The hash code for this object.
no setterinherited
headerIndex int?
Index of the drop-down menu header component
final
itemBuilder IndexedWidgetBuilder?
Builder for the sub-items of the drop-down menu content body, used to customize Item
final
items List<DropDownItem>
Data of the drop-down menu content body
final
itemStyle DropDownItemStyle
Style of the drop-down menu grid item
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisSpacing double
The line spacing of the sub-items of the drop-down menu content body
final
maxMultiChoiceSize int?
The maximum number of multiple choices for the sub-items of the drop-down menu content body
final
onDropDownHeaderUpdate OnDropDownHeaderUpdate?
Callback event triggered after the drop-down menu selection is confirmed, used to update the status of the header component by the return value of the callback headerIndex should not be null when using this callback
final
onDropDownItemChanged OnDropDownItemChanged?
The selected state change event of the child item of the drop-down menu content body
final
onDropDownItemLimitExceeded OnDropDownItemLimitExceeded?
Callback event triggered when the number of multiple selections for the sub-items of the drop-down menu content body exceeds the maximum value
final
onDropDownItemsConfirm OnDropDownItemsConfirm?
Click event of the confirmation button component of the drop-down menu content body in the multi-select state
final
onDropDownItemsReset OnDropDownItemsReset?
The click event of the reset button component of the drop-down menu content body in the multi-select state
final
onDropDownItemTap OnDropDownItemTap?
Click event for the child item of the drop-down menu content body
final
physics ScrollPhysics?
Whether the drop-down menu content body is scrollable
final
resetWidget Widget?
The reset button component of the drop-down menu content body in the multi-select state
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shrinkWrap bool?
GridView in the drop-down menu content body Whether the extent of the scroll view in the scrollDirection should be determined by the contents being viewed.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DropDownGridView>
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