diff --git a/CHANGELOG.md b/CHANGELOG.md index 64b04e1c..58c4294c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# [1.2.1 - Unreleased] + +- Use `hourLinePainter` in `DayView` [#386](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/386) + # [1.2.0 - 10 May 2024](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/tree/1.2.0) - Fixed issue when adding full-day events to WeekView, event is not display at correct date. [#259](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/259) diff --git a/lib/src/day_view/_internal_day_view_page.dart b/lib/src/day_view/_internal_day_view_page.dart index d46be383..b9656fcf 100644 --- a/lib/src/day_view/_internal_day_view_page.dart +++ b/lib/src/day_view/_internal_day_view_page.dart @@ -230,21 +230,20 @@ class _InternalDayViewPageState children: [ CustomPaint( size: Size(widget.width, widget.height), - painter: HourLinePainter( - lineColor: widget.hourIndicatorSettings.color, - lineHeight: widget.hourIndicatorSettings.height, - offset: widget.timeLineWidth + + painter: widget.hourLinePainter( + widget.hourIndicatorSettings.color, + widget.hourIndicatorSettings.height, + widget.timeLineWidth + widget.hourIndicatorSettings.offset, - minuteHeight: widget.heightPerMinute, - verticalLineOffset: widget.verticalLineOffset, - showVerticalLine: widget.showVerticalLine, - lineStyle: widget.hourIndicatorSettings.lineStyle, - dashWidth: widget.hourIndicatorSettings.dashWidth, - dashSpaceWidth: - widget.hourIndicatorSettings.dashSpaceWidth, - emulateVerticalOffsetBy: widget.emulateVerticalOffsetBy, - startHour: widget.startHour, - endHour: widget.endHour, + widget.heightPerMinute, + widget.showVerticalLine, + widget.verticalLineOffset, + widget.hourIndicatorSettings.lineStyle, + widget.hourIndicatorSettings.dashWidth, + widget.hourIndicatorSettings.dashSpaceWidth, + widget.emulateVerticalOffsetBy, + widget.startHour, + widget.endHour, ), ), if (widget.showHalfHours)