Skip to content

Commit 18d6c0e

Browse files
authored
Merge pull request #462 from Bonway/feature/week_hour_line_painter
fix : fixes hourLinePainter of weekView,fixes issue #461
2 parents 2759702 + b358e61 commit 18d6c0e

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

lib/src/week_view/_internal_week_view_page.dart

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -355,21 +355,20 @@ class _InternalWeekViewPageState<T extends Object?>
355355
children: [
356356
CustomPaint(
357357
size: Size(widget.width, widget.height),
358-
painter: HourLinePainter(
359-
lineColor: widget.hourIndicatorSettings.color,
360-
lineHeight: widget.hourIndicatorSettings.height,
361-
offset: widget.timeLineWidth +
358+
painter: widget.hourLinePainter(
359+
widget.hourIndicatorSettings.color,
360+
widget.hourIndicatorSettings.height,
361+
widget.timeLineWidth +
362362
widget.hourIndicatorSettings.offset,
363-
minuteHeight: widget.heightPerMinute,
364-
verticalLineOffset: widget.verticalLineOffset,
365-
showVerticalLine: widget.showVerticalLine,
366-
lineStyle: widget.hourIndicatorSettings.lineStyle,
367-
dashWidth: widget.hourIndicatorSettings.dashWidth,
368-
dashSpaceWidth:
369-
widget.hourIndicatorSettings.dashSpaceWidth,
370-
emulateVerticalOffsetBy: widget.emulateVerticalOffsetBy,
371-
startHour: widget.startHour,
372-
endHour: widget.endHour,
363+
widget.heightPerMinute,
364+
widget.showVerticalLine,
365+
widget.verticalLineOffset,
366+
widget.hourIndicatorSettings.lineStyle,
367+
widget.hourIndicatorSettings.dashWidth,
368+
widget.hourIndicatorSettings.dashSpaceWidth,
369+
widget.emulateVerticalOffsetBy,
370+
widget.startHour,
371+
widget.endHour,
373372
),
374373
),
375374
if (widget.showHalfHours)

0 commit comments

Comments
 (0)