diff --git a/example/lib/main.dart b/example/lib/main.dart index 146e23af..ea174cdb 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -39,8 +39,8 @@ List _events = [ date: _now, title: "Project meeting", description: "Today is project meeting.", - startTime: DateTime(_now.year, _now.month, _now.day, 18, 30), - endTime: DateTime(_now.year, _now.month, _now.day, 22), + startTime: DateTime(_now.year, _now.month, _now.day, 0, 0), + endTime: DateTime(_now.year, _now.month, _now.day, 4, 0), ), CalendarEventData( date: _now.add(Duration(days: 1)), diff --git a/example/lib/widgets/day_view_widget.dart b/example/lib/widgets/day_view_widget.dart index a5e2d71d..6d5d5784 100644 --- a/example/lib/widgets/day_view_widget.dart +++ b/example/lib/widgets/day_view_widget.dart @@ -44,6 +44,7 @@ class DayViewWidget extends StatelessWidget { ), verticalLineOffset: 0, timeLineWidth: 65, + showQuarterHours: true, showLiveTimeLineInAllDays: true, liveTimeIndicatorSettings: LiveTimeIndicatorSettings( color: Colors.redAccent, diff --git a/lib/src/components/common_components.dart b/lib/src/components/common_components.dart index 43297722..ccea5d96 100644 --- a/lib/src/components/common_components.dart +++ b/lib/src/components/common_components.dart @@ -173,9 +173,7 @@ class DefaultPressDetector extends StatelessWidget { width: width, height: heightPerSlot, child: kDebugMode - ? ColoredBox( - color: Colors.red.withOpacity(0.2), - ) + ? ColoredBox(color: Colors.red.withOpacity(0.1)) : SizedBox.shrink(), ), ), diff --git a/lib/src/day_view/_internal_day_view_page.dart b/lib/src/day_view/_internal_day_view_page.dart index 302d94f6..7fb4fb3a 100644 --- a/lib/src/day_view/_internal_day_view_page.dart +++ b/lib/src/day_view/_internal_day_view_page.dart @@ -316,28 +316,32 @@ class _InternalDayViewPageState minuteSlotSize: widget.minuteSlotSize, ), ), + Align( alignment: Alignment.centerRight, - child: EventGenerator( - height: widget.height, - date: widget.date, - onTileLongTap: widget.onTileLongTap, - onTileDoubleTap: widget.onTileDoubleTap, - onTileTap: widget.onTileTap, - eventArranger: widget.eventArranger, - events: widget.controller.getEventsOnDay( - widget.date, - includeFullDayEvents: false, + child: Padding( + padding: widget.pagePadding, + child: EventGenerator( + height: widget.height, + date: widget.date, + onTileLongTap: widget.onTileLongTap, + onTileDoubleTap: widget.onTileDoubleTap, + onTileTap: widget.onTileTap, + eventArranger: widget.eventArranger, + events: widget.controller.getEventsOnDay( + widget.date, + includeFullDayEvents: false, + ), + heightPerMinute: widget.heightPerMinute, + eventTileBuilder: widget.eventTileBuilder, + scrollNotifier: widget.scrollNotifier, + startHour: widget.startHour, + endHour: widget.endHour, + width: widget.width - + widget.timeLineWidth - + widget.hourIndicatorSettings.offset - + widget.verticalLineOffset, ), - heightPerMinute: widget.heightPerMinute, - eventTileBuilder: widget.eventTileBuilder, - scrollNotifier: widget.scrollNotifier, - startHour: widget.startHour, - endHour: widget.endHour, - width: widget.width - - widget.timeLineWidth - - widget.hourIndicatorSettings.offset - - widget.verticalLineOffset, ), ), TimeLine(