From 58a8530852b90731ad3c80a4934734f0a656547d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E8=9B=AE=E9=BA=9F?= <970753803@qq.com> Date: Wed, 17 Sep 2025 16:36:23 +0800 Subject: [PATCH 1/4] fix timeLine 0:00 24:00 --- lib/src/components/_internal_components.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/components/_internal_components.dart b/lib/src/components/_internal_components.dart index feeb957a..19dba29f 100644 --- a/lib/src/components/_internal_components.dart +++ b/lib/src/components/_internal_components.dart @@ -268,7 +268,7 @@ class _TimeLineState extends State { ), child: Stack( children: [ - for (int i = widget.startHour + 1; i < widget.endHour; i++) + for (int i = widget.startHour + 1; i <= widget.endHour; i++) _timelinePositioned( topPosition: widget.hourHeight * (i - widget.startHour) - widget.timeLineOffset, @@ -278,7 +278,7 @@ class _TimeLineState extends State { hour: i, ), if (widget.showHalfHours) - for (int i = widget.startHour; i < widget.endHour; i++) + for (int i = widget.startHour; i <= widget.endHour; i++) _timelinePositioned( topPosition: widget.hourHeight * (i - widget.startHour) - widget.timeLineOffset + @@ -290,7 +290,7 @@ class _TimeLineState extends State { minutes: 30, ), if (widget.showQuarterHours) - for (int i = widget.startHour; i < widget.endHour; i++) ...[ + for (int i = widget.startHour; i <= widget.endHour; i++) ...[ /// this is for 15 minutes _timelinePositioned( topPosition: widget.hourHeight * (i - widget.startHour) - From ec2c00c2db39bd574320c84a8021147379229d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E8=9B=AE=E9=BA=9F?= <970753803@qq.com> Date: Wed, 17 Sep 2025 16:48:54 +0800 Subject: [PATCH 2/4] fix timeLine 0:00 24:00 --- lib/src/components/_internal_components.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/components/_internal_components.dart b/lib/src/components/_internal_components.dart index 19dba29f..d21379d9 100644 --- a/lib/src/components/_internal_components.dart +++ b/lib/src/components/_internal_components.dart @@ -338,7 +338,7 @@ class _TimeLineState extends State { hour, minutes, ); - + print("_timelinePositioned currentDateTime:$currentDateTime dateTime:$dateTime"); return Visibility( visible: !((_currentTime.minute >= 45 && _currentTime.hour == hour - 1) || (_currentTime.minute <= 15 && _currentTime.hour == hour)) || From fd1626eb35ce55e077eb14fbb019921d8302139a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E8=9B=AE=E9=BA=9F?= <970753803@qq.com> Date: Wed, 17 Sep 2025 16:52:21 +0800 Subject: [PATCH 3/4] fix timeLine 0:00 24:00 --- lib/src/components/_internal_components.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/components/_internal_components.dart b/lib/src/components/_internal_components.dart index d21379d9..76f65ce0 100644 --- a/lib/src/components/_internal_components.dart +++ b/lib/src/components/_internal_components.dart @@ -268,7 +268,7 @@ class _TimeLineState extends State { ), child: Stack( children: [ - for (int i = widget.startHour + 1; i <= widget.endHour; i++) + for (int i = widget.startHour; i < widget.endHour; i++) _timelinePositioned( topPosition: widget.hourHeight * (i - widget.startHour) - widget.timeLineOffset, @@ -278,7 +278,7 @@ class _TimeLineState extends State { hour: i, ), if (widget.showHalfHours) - for (int i = widget.startHour; i <= widget.endHour; i++) + for (int i = widget.startHour; i < widget.endHour; i++) _timelinePositioned( topPosition: widget.hourHeight * (i - widget.startHour) - widget.timeLineOffset + @@ -290,7 +290,7 @@ class _TimeLineState extends State { minutes: 30, ), if (widget.showQuarterHours) - for (int i = widget.startHour; i <= widget.endHour; i++) ...[ + for (int i = widget.startHour; i < widget.endHour; i++) ...[ /// this is for 15 minutes _timelinePositioned( topPosition: widget.hourHeight * (i - widget.startHour) - From 14c6eb79e4bb14cd5255d6738333c5f94a2e4f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E8=9B=AE=E9=BA=9F?= <970753803@qq.com> Date: Wed, 17 Sep 2025 17:02:14 +0800 Subject: [PATCH 4/4] fix timeLine 0:00 23:00 --- lib/src/components/_internal_components.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/components/_internal_components.dart b/lib/src/components/_internal_components.dart index 76f65ce0..01847c9f 100644 --- a/lib/src/components/_internal_components.dart +++ b/lib/src/components/_internal_components.dart @@ -338,7 +338,6 @@ class _TimeLineState extends State { hour, minutes, ); - print("_timelinePositioned currentDateTime:$currentDateTime dateTime:$dateTime"); return Visibility( visible: !((_currentTime.minute >= 45 && _currentTime.hour == hour - 1) || (_currentTime.minute <= 15 && _currentTime.hour == hour)) ||