HeaderStyleCustomize class

Class containing styling and configuration of TableCalendar's header.

Constructors

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.
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
icon IconData
Icon next to title
final
iconColor Color
Color of icon next to title
final
iconPadding EdgeInsets
Padding of icon next to title
final
iconSize double
Padding of icon next to title
final
isHasIcon bool
Visibility icon next to title
final
isHasToggle bool
Visibility toggle
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
marginToggle double
Margin of toggle
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
titleDecoration BoxDecoration
Decoration of title in the header
final
titleMargin EdgeInsets
Margin of title in the header
final
titlePadding EdgeInsets
Padding of title in the header
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
widthToggle double
Width of toggle
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