MenuDropdownConfig class
Constructors
- MenuDropdownConfig({Color backgroundColor = Colors.white, double borderRadius = 6, double elevation = 4, double? width, double? maxHeight, EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 8), TextStyle? labelTextStyle = const TextStyle(color: Colors.black, fontSize: 14), Color? itemIconColor, double iconSize = 20, Duration animationDuration = const Duration(milliseconds: 150), MenuAlignment alignment = MenuAlignment.left, bool showAbove = false, Color? tooltipTextColor, Color? tooltipBackgroundColor, TextStyle? headerTextStyle, })
-
const
Properties
- alignment → MenuAlignment
-
Horizontal alignment relative to the anchor widget
final
- animationDuration → Duration
-
Duration of dropdown animation
final
- backgroundColor → Color
-
Dropdown background color
final
- borderRadius → double
-
Radius of the dropdown border
final
- contentPadding → EdgeInsets
-
Internal padding between items
final
- elevation → double
-
Material elevation
final
-
Text style for the optional footer widget
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerTextStyle → TextStyle?
-
Text style for the optional header widget
final
- iconSize → double
-
Icon size for each menu item
final
- itemIconColor → Color?
-
Color for menu item icons (used if not overridden individually)
final
- labelTextStyle → TextStyle?
-
Text style for menu item labels
final
- maxHeight → double?
-
Max height of dropdown. If null, fits to content height.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAbove → bool
-
Forces dropdown to appear above instead of below
final
- tooltipBackgroundColor → Color?
-
Background color of the tooltip
final
- tooltipTextColor → Color?
-
Text color for the tooltip
final
- width → double?
-
Custom width of dropdown. If null, dropdown resizes to content.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited