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