HeaderStyleCustomize constructor

const HeaderStyleCustomize({
  1. bool titleCentered = false,
  2. bool formatButtonVisible = false,
  3. bool formatButtonShowsNext = true,
  4. TextFormatter? titleTextFormatter,
  5. TextStyle titleTextStyle = const TextStyle(fontSize: 17, fontWeight: FontWeight.w700),
  6. TextStyle formatButtonTextStyle = const TextStyle(fontSize: 14.0),
  7. BoxDecoration formatButtonDecoration = const BoxDecoration(border: Border.fromBorderSide(BorderSide()), borderRadius: BorderRadius.all(Radius.circular(12.0))),
  8. EdgeInsets headerMargin = const EdgeInsets.all(0.0),
  9. EdgeInsets headerPadding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 16.0),
  10. EdgeInsets formatButtonPadding = const EdgeInsets.symmetric(horizontal: 10.0, vertical: 4.0),
  11. EdgeInsets leftChevronPadding = EdgeInsets.zero,
  12. EdgeInsets rightChevronPadding = EdgeInsets.zero,
  13. EdgeInsets leftChevronMargin = const EdgeInsets.only(left: 8.0),
  14. EdgeInsets rightChevronMargin = const EdgeInsets.only(left: 24.0),
  15. Widget leftChevronIcon = const Icon(Icons.chevron_left, size: 24.0),
  16. Widget rightChevronIcon = const Icon(Icons.chevron_right, size: 24.0),
  17. bool leftChevronVisible = true,
  18. bool rightChevronVisible = true,
  19. BoxDecoration decoration = const BoxDecoration(),
  20. EdgeInsets titlePadding = EdgeInsets.zero,
  21. EdgeInsets titleMargin = EdgeInsets.zero,
  22. BoxDecoration titleDecoration = const BoxDecoration(),
  23. bool isHasIcon = true,
  24. IconData icon = Icons.arrow_drop_down,
  25. double iconSize = 24.0,
  26. Color iconColor = colorPrimary,
  27. EdgeInsets iconPadding = const EdgeInsets.only(left: 8.0),
  28. bool isHasToggle = true,
  29. double widthToggle = 52.0,
  30. double marginToggle = 2.0,
})

Creates a HeaderStyleCustomize used by TableCalendar widget.

Implementation

const HeaderStyleCustomize({
  this.titleCentered = false,
  this.formatButtonVisible = false,
  this.formatButtonShowsNext = true,
  this.titleTextFormatter,
  this.titleTextStyle = const TextStyle(
    fontSize: 17,
    fontWeight: FontWeight.w700,
  ),
  this.formatButtonTextStyle = const TextStyle(fontSize: 14.0),
  this.formatButtonDecoration = const BoxDecoration(
    border: Border.fromBorderSide(BorderSide()),
    borderRadius: BorderRadius.all(Radius.circular(12.0)),
  ),
  this.headerMargin = const EdgeInsets.all(0.0),
  this.headerPadding =
      const EdgeInsets.symmetric(horizontal: 12.0, vertical: 16.0),
  this.formatButtonPadding =
      const EdgeInsets.symmetric(horizontal: 10.0, vertical: 4.0),
  this.leftChevronPadding = EdgeInsets.zero,
  this.rightChevronPadding = EdgeInsets.zero,
  this.leftChevronMargin = const EdgeInsets.only(left: 8.0),
  this.rightChevronMargin = const EdgeInsets.only(left: 24.0),
  this.leftChevronIcon = const Icon(
    Icons.chevron_left,
    size: 24.0,
  ),
  this.rightChevronIcon = const Icon(
    Icons.chevron_right,
    size: 24.0,
  ),
  this.leftChevronVisible = true,
  this.rightChevronVisible = true,
  this.decoration = const BoxDecoration(),
  this.titlePadding = EdgeInsets.zero,
  this.titleMargin = EdgeInsets.zero,
  this.titleDecoration = const BoxDecoration(),
  this.isHasIcon = true,
  this.icon = Icons.arrow_drop_down,
  this.iconSize = 24.0,
  this.iconColor = colorPrimary,
  this.iconPadding = const EdgeInsets.only(left: 8.0),
  this.isHasToggle = true,
  this.widthToggle = 52.0,
  this.marginToggle = 2.0,
});