EasyDropdownConfig constructor
- double? radius,
- Color? backgroundColor,
- double? tileHeight,
- double? dropdownWidth,
- double? dropdownHeight,
- EasyDropdownAlignment? dropdownAlignment,
- EasyDropdownDirection? dropdownDirection,
- double? buttonMargin,
- bool? showDividers,
- DividerBuilder? dividerBuilder,
- Duration? animationDuration,
- double? dropdownElevation,
Creates an instance of EasyDropdownConfig with optional parameters.
radius: Radius for rounding the corners of the dropdown. If null, the default is FloatingActionButtonThemeData.shape.
backgroundColor: Background color of the dropdown. If null, the default is ColorScheme.surfaceVariant.
tileHeight: Height of individual tiles in the dropdown list. If null, the default is 56.
dropdownWidth: Width of the dropdown.
dropdownHeight: Height of the dropdown.
dropdownAlignment: Alignment of the dropdown relative to the button. If null, the default is EasyDropdownAlignment.center.
dropdownDirection: Direction of the dropdown. Use EasyDropdownDirection enum to specify the direction. If null, the dropdown will follow the default direction.
buttonMargin: The margin between the button and the dropdown.
showDividers: Whether to display dividers between items.
dividerBuilder: Builder function for custom dividers. Defaults to Divider if null
animationDuration: The duration for the dropdown animation. If null, the default is 160 milliseconds.
dropdownElevation: The elevation of the dropdown menu. Controls the shadow depth of the dropdown. A higher value will make the dropdown appear elevated above the surrounding content. If null, the default is 2.
Implementation
const EasyDropdownConfig({
this.radius,
this.backgroundColor,
this.tileHeight,
this.dropdownWidth,
this.dropdownHeight,
this.dropdownAlignment,
this.dropdownDirection,
this.buttonMargin,
this.showDividers,
this.dividerBuilder,
this.animationDuration,
this.dropdownElevation,
});