SelectionMenu class

Inheritance
Available extensions

Constructors

SelectionMenu({required WidgetBuilder selectorBuilder, required DropDownButtonBuilder? buttonBuilder, LayoutSelectPop? layoutSelectPop, DropDownPopCreated? onCreated, DropDownPopShow? onShow, DropDownPopDismiss? onDismiss, bool enableOnHover = false, bool matchParentWidth = true, double popWidth = 0, double hMargin = 0, double vMargin = 0, double popHeight = 200, BorderRadiusGeometry? materialBorderRadius, Color? color = Colors.transparent, ShapeBorder? shape, double elevation = 0.0, Color? shadowColor, String? barrierLabel, Color? barrierColor, bool barrierDismissible = true, Duration transitionDuration = const Duration(milliseconds: 200), AlignType alignType = AlignType.left, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, GestureTapCancelCallback? onTapCancel, ValueChanged<bool>? onHighlightChanged, ValueChanged<bool>? onHover, MouseCursor? mouseCursor, Color? focusColor, Color? hoverColor, Color? highlightColor, MaterialStateProperty<Color?>? overlayColor, Color? splashColor, InteractiveInkFeatureFactory? splashFactory, double? radius, BorderRadius? borderRadius, ShapeBorder? customBorder, bool? enableFeedback = true, bool excludeFromSemantics = false, FocusNode? focusNode, bool canRequestFocus = true, ValueChanged<bool>? onFocusChange, bool autofocus = false, Key? key})
const

Properties

alignType AlignType
对齐方式
final
autofocus bool
final
barrierColor Color?
final
barrierDismissible bool
是否允许点击其他区域消失
final
barrierLabel String?
final
borderRadius BorderRadius?
final
buttonBuilder DropDownButtonBuilder?
下拉框构建器
final
canRequestFocus bool
final
color Color?
final
customBorder ShapeBorder?
final
elevation double
阴影
final
enableFeedback bool?
final
enableOnHover bool
是否开启鼠标悬浮
final
excludeFromSemantics bool
final
focusColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
final
hMargin double
水平边距
final
hoverColor Color?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutSelectPop LayoutSelectPop?
自定义下拉框位置
final
matchParentWidth bool
当设置的宽度小于 父组件宽度时, 是否匹配父组件宽度,默认true
final
materialBorderRadius BorderRadiusGeometry?
Material 背景样式
final
mouseCursor MouseCursor?
final
onCreated DropDownPopCreated?
下拉框创建
final
onDismiss DropDownPopDismiss?
下拉框消失
final
onDoubleTap GestureTapCallback?
final
onFocusChange ValueChanged<bool>?
final
onHighlightChanged ValueChanged<bool>?
final
onHover ValueChanged<bool>?
final
onLongPress GestureLongPressCallback?
final
onShow DropDownPopShow?
下拉框显示
final
onTapCancel GestureTapCancelCallback?
final
onTapDown GestureTapDownCallback?
final
onTapUp GestureTapUpCallback?
final
overlayColor MaterialStateProperty<Color?>?
final
popHeight double
窗口高度
final
popWidth double
下拉框宽度 弹窗部分
final
radius double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectorBuilder WidgetBuilder
下拉框样式构件 弹出部分
final
shadowColor Color?
阴影颜色
final
shape ShapeBorder?
final
splashColor Color?
final
splashFactory InteractiveInkFeatureFactory?
final
transitionDuration Duration
动画时间
final
vMargin double
垂直 边距
final

Methods

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