DropDownHeader constructor

DropDownHeader({
  1. Key? key,
  2. required List<DropDownHeaderItem> items,
  3. required DropdownMenuController controller,
  4. required GlobalKey<State<StatefulWidget>> stackKey,
  5. TextStyle style = const TextStyle(color: Color(0xFF666666), fontSize: 13),
  6. TextStyle? dropDownStyle,
  7. double height = 40,
  8. Color iconColor = const Color(0xFFafada7),
  9. Color? iconDropDownColor,
  10. double iconSize = 20,
  11. double borderWidth = 1,
  12. Color borderColor = const Color(0xFFeeede6),
  13. double dividerHeight = 20,
  14. Color dividerColor = const Color(0xFFeeede6),
  15. OnItemTap? onItemTap,
  16. Color color = Colors.white,
  17. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  18. double leftPadding = 0,
})

Creates a dropdown header widget, Contains more than one header items.

Implementation

DropDownHeader({
  Key? key,
  required this.items,
  required this.controller,
  required this.stackKey,
  this.style = const TextStyle(color: Color(0xFF666666), fontSize: 13),
  this.dropDownStyle,
  this.height = 40,
  this.iconColor = const Color(0xFFafada7),
  this.iconDropDownColor,
  this.iconSize = 20,
  this.borderWidth = 1,
  this.borderColor = const Color(0xFFeeede6),
  this.dividerHeight = 20,
  this.dividerColor = const Color(0xFFeeede6),
  this.onItemTap,
  this.color = Colors.white,
  this.mainAxisAlignment=MainAxisAlignment.center,
  this.leftPadding=0
}) : super(key: key);