From a9d66c1ab8750fb0dd4aeb1dbfb9013cab30909b Mon Sep 17 00:00:00 2001 From: Parth Baraiya Date: Sat, 14 Sep 2024 01:37:58 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixes=20issue=20#386.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 +++ lib/src/day_view/_internal_day_view_page.dart | 27 +++++++++---------- 2 files changed, 17 insertions(+), 14 deletions(-) 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)