DecoratedDropdownButton class

Inheritance

Constructors

DecoratedDropdownButton({Key? key, required String value, required List<DropdownMenuItem<String>> items, required void onChanged(Object? value), BorderRadius? borderRadius, Border? border, Color? color, LinearGradient? gradient, List<BoxShadow>? boxShadow, Icon icon = const Icon(Icons.arrow_drop_down), EdgeInsets iconPadding = const EdgeInsets.only(left: 20), BoxShape shape = BoxShape.rectangle, EdgeInsets padding = const EdgeInsets.only(left: 20, right: 20), TextStyle? style, Widget? underline, bool isExpanded = true, Color? iconEnableColor, Color? iconDisableColor, Color? dropdownColor, Color? focusColor, bool autoFocus = false, AlignmentGeometry alignment = AlignmentDirectional.centerStart, FocusNode? node, Widget? hint, Widget? disabledHint})

Properties

alignment AlignmentGeometry
getter/setter pair
autoFocus bool
getter/setter pair
border Border?
getter/setter pair
borderRadius BorderRadius?
getter/setter pair
boxShadow List<BoxShadow>?
getter/setter pair
color Color?
getter/setter pair
disabledHint Widget?
getter/setter pair
getter/setter pair
focusColor Color?
getter/setter pair
gradient LinearGradient?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hint Widget?
getter/setter pair
icon Icon
getter/setter pair
iconDisableColor Color?
getter/setter pair
iconEnableColor Color?
getter/setter pair
iconPadding EdgeInsets
getter/setter pair
isExpanded bool
getter/setter pair
items List<DropdownMenuItem<String>>
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
node FocusNode?
getter/setter pair
onChanged ↔ void Function(Object? value)
getter/setter pair
onTap ↔ (void Function()?)
getter/setter pair
padding EdgeInsets
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BoxShape
getter/setter pair
style TextStyle?
getter/setter pair
underline Widget?
getter/setter pair
value String
getter/setter pair

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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