ZwapDropDownDecoration constructor
const
ZwapDropDownDecoration({
- double? height,
- double? width,
- Color? backgroundColor,
- double borderRadius = 14,
- double hoverBorderRadius = 8,
- double overlayBorderRadius = 14,
- Color? hoverColor,
- Color? overlayBackgroundColor,
- EdgeInsets overlayContentPadding = const EdgeInsets.symmetric(horizontal: 9, vertical: 13),
- EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 13),
- double itemSpacing = 2,
- Offset overlayTranslateOffset = const Offset(0, 0),
- EdgeInsets insideItemPadding = const EdgeInsets.symmetric(horizontal: 17, vertical: 3),
- Color? selectedItemColor,
- Color? itemHoverColor,
- double? overlayWidth,
- CrossAxisAlignment itemsAlignment = CrossAxisAlignment.start,
All the data have default values
Implementation
const ZwapDropDownDecoration({
this.height,
this.width,
Color? backgroundColor,
this.borderRadius = 14,
this.hoverBorderRadius = 8,
this.overlayBorderRadius = 14,
Color? hoverColor,
Color? overlayBackgroundColor,
this.overlayContentPadding = const EdgeInsets.symmetric(horizontal: 9, vertical: 13),
this.contentPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 13),
this.itemSpacing = 2,
this.overlayTranslateOffset = const Offset(0, 0),
this.insideItemPadding = const EdgeInsets.symmetric(horizontal: 17, vertical: 3),
Color? selectedItemColor,
Color? itemHoverColor,
this.overlayWidth,
this.itemsAlignment = CrossAxisAlignment.start,
}) : this.backgroundColor = backgroundColor ?? ZwapColors.shades0,
this.hoverColor = hoverColor ?? ZwapColors.neutral100,
this.overlayBackgroundColor = overlayBackgroundColor ?? ZwapColors.shades0,
this.itemHoverColor = itemHoverColor ?? ZwapColors.neutral100,
this.selectedItemColor = selectedItemColor ?? ZwapColors.primary100;