ZwapDropDownDecoration constructor

const ZwapDropDownDecoration({
  1. double? height,
  2. double? width,
  3. Color? backgroundColor,
  4. double borderRadius = 14,
  5. double hoverBorderRadius = 8,
  6. double overlayBorderRadius = 14,
  7. Color? hoverColor,
  8. Color? overlayBackgroundColor,
  9. EdgeInsets overlayContentPadding = const EdgeInsets.symmetric(horizontal: 9, vertical: 13),
  10. EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 13),
  11. double itemSpacing = 2,
  12. Offset overlayTranslateOffset = const Offset(0, 0),
  13. EdgeInsets insideItemPadding = const EdgeInsets.symmetric(horizontal: 17, vertical: 3),
  14. Color? selectedItemColor,
  15. Color? itemHoverColor,
  16. double? overlayWidth,
  17. 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;