HeaderStyle class

Class containing styling and configuration of CleanNepaliCalendar's header.

Constructors

HeaderStyle({bool centerHeaderTitle = true, TextBuilder? titleTextBuilder, TextStyle titleTextStyle = const TextStyle(fontSize: 17.0), EdgeInsets leftChevronPadding = const EdgeInsets.all(8.0), EdgeInsets rightChevronPadding = const EdgeInsets.all(8.0), Icon leftChevronIcon = const Icon(Icons.chevron_left, color: Colors.black), Icon rightChevronIcon = const Icon(Icons.chevron_right, color: Colors.black), BoxDecoration decoration = const BoxDecoration(), bool enableFadeTransition = true})
const

Properties

centerHeaderTitle bool
Responsible for making title Text centered.
final
decoration BoxDecoration
Header decoration, used to draw border or shadow or change color of the header Defaults to empty BoxDecoration.
final
enableFadeTransition bool
enable or disable fadeTransition animation on header when changing the month
final
hashCode int
The hash code for this object.
no setterinherited
leftChevronIcon Icon
Icon used for left chevron. Defaults to black Icons.chevron_left.
final
leftChevronPadding EdgeInsets
Inside padding for left chevron.
final
rightChevronIcon Icon
Icon used for right chevron. Defaults to black Icons.chevron_right.
final
rightChevronPadding EdgeInsets
Inside padding for right chevron.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleTextBuilder TextBuilder?
Use to customize header's title text (eg. with different DateFormat). You can use String transformations to further customize the text. Defaults to simple 'yMMMM' format (eg. 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