HeaderStyle class
Class containing styling and configuration of TableCalendar
's header.
Constructors
- HeaderStyle({TextFormatter? titleTextFormatter, TextStyle titleTextStyle = const TextStyle(fontSize: 17.0), EdgeInsets headerMargin = const EdgeInsets.all(0.0), EdgeInsets headerPadding = const EdgeInsets.symmetric(vertical: 8.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, Decoration decoration = const BoxDecoration()})
-
Creates a
HeaderStyle
used byTableCalendar
widget.const
Properties
- decoration → Decoration
-
Decoration of the header.
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
- titleTextFormatter → TextFormatter?
-
Use to customize header's title text (e.g. with different
DateFormat
). You can useString
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