HeaderStyle class

Class containing styling and configuration of TableCalendar's header.

Constructors

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.
const

Properties

decoration BoxDecoration
Decoration of the header.
final
formatButtonDecoration BoxDecoration
Background Decoration for FormatButton.
final
formatButtonPadding EdgeInsets
Internal padding of FormatButton.
final
formatButtonShowsNext bool
Controls the text inside FormatButton.
final
formatButtonTextStyle TextStyle
Style for FormatButton Text.
final
formatButtonVisible bool
Responsible for FormatButton visibility.
final
hashCode int
The hash code for this object.
no setterinherited
headerMargin EdgeInsets
External margin of the whole header.
final
headerPadding EdgeInsets
Internal padding of the whole header.
final
leftChevronIcon Widget
Widget used for left chevron.
final
leftChevronMargin EdgeInsets
External margin of left chevron.
final
leftChevronPadding EdgeInsets
Internal padding of left chevron. Determines how much of ripple animation is visible during taps.
final
leftChevronVisible bool
Determines left chevron's visibility.
final
rightChevronIcon Widget
Widget used for right chevron.
final
rightChevronMargin EdgeInsets
External margin of right chevron.
final
rightChevronPadding EdgeInsets
Internal padding of right chevron. Determines how much of ripple animation is visible during taps.
final
rightChevronVisible bool
Determines right chevron's visibility.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleCentered bool
Responsible for making title Text centered.
final
titleTextFormatter TextFormatter?
Use to customize header's title text (e.g. with different DateFormat). You can use String transformations to further customize the text. Defaults to simple 'yMMMM' format (i.e. January 2019, February 2019, March 2019, etc.).
final
titleTextStyle TextStyle
Style for title Text (month-year) displayed in header.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited