WiseDropDown<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- WiseDropDown
Constructors
-
WiseDropDown({Widget? hint, TextStyle? style, required List<
DropdownMenuItem< items, T? initialValue, bool isDense = true, bool isExpanded = true, int elevation = 8, double iconSize = 24.0, Widget? icon, InputDecoration decoration = const InputDecoration()})T> >
Properties
- decoration → InputDecoration
-
输入装饰
final
- elevation → int
-
阴影高度
默认8
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → Widget?
-
通过下拉按钮显示的占位提示。
final
- icon → Widget?
-
下拉按钮图标
默认使用 Icons.arrow_drop_down.
final
- iconSize → double
-
下拉按钮图标尺寸
默认24
final
- initialValue → T?
-
初始化值
final
- isDense → bool
-
默认情况下,此按钮的高度与其菜单项的高度相同。
如果isDense是真的,按钮的高度会减少一半左右。
final
- isExpanded → bool
-
将下拉列表的内部内容设置为水平填充其父级。
默认情况下,此按钮的内部宽度是其内容的最小大小。
如果isExpanded为真,则内部宽度将扩展以填充其内部宽度周围的容器。
final
-
items
→ List<
DropdownMenuItem< T> > -
下拉菜单菜单项
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
用于下拉按钮和下拉列表中文本的文本样式
点击按钮时出现的菜单。
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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