HeaderStyle constructor

const HeaderStyle({
  1. bool titleCentered = false,
  2. bool formatButtonVisible = true,
  3. bool formatButtonShowsNext = true,
  4. TextFormatter? titleTextFormatter,
  5. TextStyle titleTextStyle = const TextStyle(fontSize: 17.0),
  6. TextStyle formatButtonTextStyle = const TextStyle(fontSize: 14.0),
  7. BoxDecoration formatButtonDecoration = const BoxDecoration(border: const Border.fromBorderSide(BorderSide()), borderRadius: const BorderRadius.all(Radius.circular(12.0))),
  8. EdgeInsets headerMargin = const EdgeInsets.all(0.0),
  9. EdgeInsets headerPadding = const EdgeInsets.symmetric(vertical: 8.0),
  10. EdgeInsets formatButtonPadding = const EdgeInsets.symmetric(horizontal: 10.0, vertical: 4.0),
  11. EdgeInsets leftChevronPadding = const EdgeInsets.all(12.0),
  12. EdgeInsets rightChevronPadding = const EdgeInsets.all(12.0),
  13. EdgeInsets leftChevronMargin = const EdgeInsets.symmetric(horizontal: 8.0),
  14. EdgeInsets rightChevronMargin = const EdgeInsets.symmetric(horizontal: 8.0),
  15. Widget leftChevronIcon = const Icon(Icons.chevron_left),
  16. Widget rightChevronIcon = const Icon(Icons.chevron_right),
  17. bool leftChevronVisible = true,
  18. bool rightChevronVisible = true,
  19. BoxDecoration decoration = const BoxDecoration(),
})

Creates a HeaderStyle used by TableCalendar widget.

Implementation

const HeaderStyle({
  this.titleCentered = false,
  this.formatButtonVisible = true,
  this.formatButtonShowsNext = true,
  this.titleTextFormatter,
  this.titleTextStyle = const TextStyle(fontSize: 17.0),
  this.formatButtonTextStyle = const TextStyle(fontSize: 14.0),
  this.formatButtonDecoration = const BoxDecoration(
    border: const Border.fromBorderSide(BorderSide()),
    borderRadius: const BorderRadius.all(Radius.circular(12.0)),
  ),
  this.headerMargin = const EdgeInsets.all(0.0),
  this.headerPadding = const EdgeInsets.symmetric(vertical: 8.0),
  this.formatButtonPadding =
      const EdgeInsets.symmetric(horizontal: 10.0, vertical: 4.0),
  this.leftChevronPadding = const EdgeInsets.all(12.0),
  this.rightChevronPadding = const EdgeInsets.all(12.0),
  this.leftChevronMargin = const EdgeInsets.symmetric(horizontal: 8.0),
  this.rightChevronMargin = const EdgeInsets.symmetric(horizontal: 8.0),
  this.leftChevronIcon = const Icon(Icons.chevron_left),
  this.rightChevronIcon = const Icon(Icons.chevron_right),
  this.leftChevronVisible = true,
  this.rightChevronVisible = true,
  this.decoration = const BoxDecoration(),
});