GZXDropDownHeader constructor

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

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

Implementation

GZXDropDownHeader({
  Key? key,
  required this.items,
  required this.controller,
  required this.stackKey,
  this.headerOnLeftWhenJustOne = false,
  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,
}) : super(key: key);