@@ -10,6 +10,7 @@ import '../components/week_view_components.dart';
1010import '../enumerations.dart' ;
1111import '../event_arrangers/event_arrangers.dart' ;
1212import '../event_controller.dart' ;
13+ import '../extensions.dart' ;
1314import '../modals.dart' ;
1415import '../painters.dart' ;
1516import '../typedefs.dart' ;
@@ -140,7 +141,7 @@ class InternalMultiDayViewPage<T extends Object?> extends StatefulWidget {
140141 final bool showQuarterHours;
141142
142143 /// Display workday bottom line
143- final bool showWeekDayBottomLine ;
144+ final bool showMutliDayBottomLine ;
144145
145146 /// Emulate vertical line offset from hour line starts.
146147 final double emulateVerticalOffsetBy;
@@ -219,7 +220,7 @@ class InternalMultiDayViewPage<T extends Object?> extends StatefulWidget {
219220 required this .multiDayViewScrollController,
220221 this .lastScrollOffset = 0.0 ,
221222 this .keepScrollOffset = false ,
222- this .showWeekDayBottomLine = true })
223+ this .showMutliDayBottomLine = true })
223224 : super (key: key);
224225
225226 @override
@@ -255,6 +256,8 @@ class _InternalMultiDayViewPageState<T extends Object?>
255256 @override
256257 Widget build (BuildContext context) {
257258 final filteredDates = _filteredDate ();
259+ final themeColor = context.multiDayViewTheme;
260+
258261 return Container (
259262 height: widget.height + widget.weekTitleHeight,
260263 width: widget.width,
@@ -264,18 +267,8 @@ class _InternalMultiDayViewPageState<T extends Object?>
264267 : VerticalDirection .down,
265268 crossAxisAlignment: CrossAxisAlignment .end,
266269 children: [
267- Container (
268- decoration: BoxDecoration (
269- color: Colors .white,
270- boxShadow: [
271- BoxShadow (
272- color: Color (0x0C000000 ),
273- offset: Offset (0 , 2 ),
274- blurRadius: 12 ,
275- spreadRadius: 0 ,
276- ),
277- ],
278- ),
270+ ColoredBox (
271+ color: themeColor.headerBackgroundColor,
279272 child: SizedBox (
280273 width: widget.width,
281274 child: Row (
@@ -301,18 +294,19 @@ class _InternalMultiDayViewPageState<T extends Object?>
301294 ),
302295 ),
303296 ),
304- if (widget.showWeekDayBottomLine )
297+ if (widget.showMutliDayBottomLine )
305298 Divider (
306299 thickness: 1 ,
307300 height: 1 ,
301+ color: themeColor.borderColor,
308302 ),
309303 SizedBox (
310304 width: widget.width,
311305 child: Container (
312306 decoration: BoxDecoration (
313307 border: Border (
314308 bottom: BorderSide (
315- color: widget.hourIndicatorSettings.color ,
309+ color: themeColor.borderColor ,
316310 width: 2 ,
317311 ),
318312 ),
@@ -374,7 +368,7 @@ class _InternalMultiDayViewPageState<T extends Object?>
374368 CustomPaint (
375369 size: Size (widget.width, widget.height),
376370 painter: widget.hourLinePainter (
377- widget.hourIndicatorSettings.color ,
371+ themeColor.hourLineColor ,
378372 widget.hourIndicatorSettings.height,
379373 widget.timeLineWidth +
380374 widget.hourIndicatorSettings.offset,
@@ -393,7 +387,7 @@ class _InternalMultiDayViewPageState<T extends Object?>
393387 CustomPaint (
394388 size: Size (widget.width, widget.height),
395389 painter: HalfHourLinePainter (
396- lineColor: widget.halfHourIndicatorSettings.color ,
390+ lineColor: themeColor.halfHourLineColor ,
397391 lineHeight: widget.halfHourIndicatorSettings.height,
398392 offset: widget.timeLineWidth +
399393 widget.halfHourIndicatorSettings.offset,
@@ -410,7 +404,7 @@ class _InternalMultiDayViewPageState<T extends Object?>
410404 CustomPaint (
411405 size: Size (widget.width, widget.height),
412406 painter: QuarterHourLinePainter (
413- lineColor: widget.quarterHourIndicatorSettings.color ,
407+ lineColor: themeColor.quarterHourLineColor ,
414408 lineHeight:
415409 widget.quarterHourIndicatorSettings.height,
416410 offset: widget.timeLineWidth +
@@ -438,8 +432,8 @@ class _InternalMultiDayViewPageState<T extends Object?>
438432 ? BoxDecoration (
439433 border: Border (
440434 right: BorderSide (
441- color: widget
442- .hourIndicatorSettings.color ,
435+ color:
436+ themeColor.verticalLinesColor ,
443437 width: widget
444438 .hourIndicatorSettings.height,
445439 ),
@@ -524,8 +518,13 @@ class _InternalMultiDayViewPageState<T extends Object?>
524518 widget.liveTimeIndicatorSettings.height > 0 &&
525519 ! widget.liveTimeIndicatorSettings.onlyShowToday)
526520 LiveTimeIndicator (
527- liveTimeIndicatorSettings:
528- widget.liveTimeIndicatorSettings,
521+ liveTimeIndicatorSettings: LiveTimeIndicatorSettings (
522+ color: themeColor.liveIndicatorColor,
523+ height: widget.liveTimeIndicatorSettings.height,
524+ offset: widget.liveTimeIndicatorSettings.offset,
525+ onlyShowToday:
526+ widget.liveTimeIndicatorSettings.onlyShowToday,
527+ ),
529528 width: widget.width,
530529 height: widget.height,
531530 heightPerMinute: widget.heightPerMinute,
0 commit comments