HeaderStyle constructor
const
HeaderStyle(
- {bool titleCentered = false,
- bool formatButtonVisible = true,
- bool formatButtonShowsNext = true,
- TextFormatter? titleTextFormatter,
- TextStyle titleTextStyle = const TextStyle(fontSize: 17.0),
- TextStyle formatButtonTextStyle = const TextStyle(fontSize: 14.0),
- BoxDecoration formatButtonDecoration = const BoxDecoration(border: const Border.fromBorderSide(BorderSide()), borderRadius: const BorderRadius.all(Radius.circular(12.0))),
- EdgeInsets headerMargin = const EdgeInsets.all(0.0),
- EdgeInsets headerPadding = const EdgeInsets.symmetric(vertical: 8.0),
- EdgeInsets formatButtonPadding = const EdgeInsets.symmetric(horizontal: 10.0, vertical: 4.0),
- EdgeInsets leftChevronPadding = const EdgeInsets.all(12.0),
- EdgeInsets rightChevronPadding = const EdgeInsets.all(12.0),
- EdgeInsets leftChevronMargin = const EdgeInsets.symmetric(horizontal: 8.0),
- EdgeInsets rightChevronMargin = const EdgeInsets.symmetric(horizontal: 8.0),
- Widget leftChevronIcon = const Icon(Icons.chevron_left),
- Widget rightChevronIcon = const Icon(Icons.chevron_right),
- bool leftChevronVisible = true,
- bool rightChevronVisible = true,
- 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(),
});