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 = const TextStyle(color: Color(0xFF333333), fontSize: 13),
  7. double height = 40,
  8. double borderWidth = 1,
  9. Color borderColor = const Color(0xFFeeede6),
  10. double dividerHeight = 20,
  11. Color dividerColor = const Color(0xFFeeede6),
  12. EdgeInsets padding = EdgeInsets.zero,
  13. OnItemTap? onItemTap,
  14. Color color = Colors.white,
})

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 = const TextStyle(color: Color(0xFF333333), fontSize: 13),
  this.height = 40,
  this.borderWidth = 1,
  this.borderColor = const Color(0xFFeeede6),
  this.dividerHeight = 20,
  this.dividerColor = const Color(0xFFeeede6),
  this.padding = EdgeInsets.zero,
  this.onItemTap,
  this.color = Colors.white,
}) : super(key: key);