DayViewStyle class

Allows to style a day view.

Inheritance

Constructors

DayViewStyle({double? headerSize, double? hourRowHeight, Color? backgroundColor, Color? backgroundRulesColor = const Color(0x1A000000), Color? currentTimeRuleColor = Colors.pink, double? currentTimeRuleHeight, Color? currentTimeCircleColor, double? currentTimeCircleRadius, CurrentTimeCirclePosition? currentTimeCirclePosition})
Creates a new day view style instance.
const
DayViewStyle.fromDate({required DateTime date, double? headerSize, double? hourRowHeight, Color backgroundRulesColor = const Color(0x1A000000), Color currentTimeRuleColor = Colors.pink, double? currentTimeRuleHeight, Color? currentTimeCircleColor, double? currentTimeCircleRadius, CurrentTimeCirclePosition? currentTimeCirclePosition})
Allows to automatically customize the day view background color according to the specified date.

Properties

backgroundColor Color?
The background color for the day view main column.
final
backgroundRulesColor Color?
The rules color, i.e., the color of the background horizontal lines positioned along with each hour shown in the hours column.
final
currentTimeCircleColor Color?
The current time circle color. This is a small circle to be shown along with the horizontal time rule in the hours column, typically colored the same as currentTimeRuleColor.
final
currentTimeCirclePosition CurrentTimeCirclePosition
The current time rule position, i.e., the position of the current time circle in the day view column.
final
currentTimeCircleRadius double
The current time circle radius.
final
currentTimeRuleColor Color?
The current time rule color, i.e., the color of the horizontal line in the day view column, positioned at the current time of the day. It is only shown if the DayView's date is today.
final
currentTimeRuleHeight double
The current time rule height.
final
hashCode int
The hash code for this object.
no setterinherited
headerSize double
The header size (usually limited to the day bar). Defaults to 60.
finalinherited
hourRowHeight double
An hour row height (with a zoom factor set to 1). Defaults to 60.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? headerSize, double? hourRowHeight, Color? backgroundColor, Color? backgroundRulesColor, Color? currentTimeRuleColor, double? currentTimeRuleHeight, Color? currentTimeCircleColor, double? currentTimeCircleRadius, CurrentTimeCirclePosition? currentTimeCirclePosition}) DayViewStyle
Allows to copy the current style instance with your own properties.
createBackgroundPainter({required DayView dayView, required TopOffsetCalculator topOffsetCalculator}) CustomPainter
Creates the background painter.
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