@@ -91,6 +91,9 @@ class InternalMultiDayViewPage<T extends Object?> extends StatefulWidget {
9191 /// Height of week title.
9292 final double weekTitleHeight;
9393
94+ /// Background color of week title
95+ final Color ? weekTitleBackgroundColor;
96+
9497 /// Width of week title.
9598 final double weekTitleWidth;
9699
@@ -174,59 +177,64 @@ class InternalMultiDayViewPage<T extends Object?> extends StatefulWidget {
174177 /// This method will be called when user taps on timestamp in timeline.
175178 final TimestampCallback ? onTimestampTap;
176179
180+ /// Background color of the calendar page.
181+ final Color ? backgroundColor;
182+
177183 /// A single page for week view.
178- const InternalMultiDayViewPage (
179- {Key ? key,
180- required this .showVerticalLine,
181- required this .weekTitleHeight,
182- required this .weekDayBuilder,
183- required this .weekNumberBuilder,
184- required this .width,
185- required this .dates,
186- required this .eventTileBuilder,
187- required this .controller,
188- required this .timeLineBuilder,
189- required this .hourIndicatorSettings,
190- required this .hourLinePainter,
191- required this .halfHourIndicatorSettings,
192- required this .quarterHourIndicatorSettings,
193- required this .dividerSettings,
194- required this .showLiveLine,
195- required this .liveTimeIndicatorSettings,
196- required this .heightPerMinute,
197- required this .timeLineWidth,
198- required this .timeLineOffset,
199- required this .height,
200- required this .hourHeight,
201- required this .eventArranger,
202- required this .verticalLineOffset,
203- required this .weekTitleWidth,
204- required this .onTileTap,
205- required this .onTileLongTap,
206- required this .onDateLongPress,
207- required this .onDateTap,
208- required this .weekDays,
209- required this .minuteSlotSize,
210- required this .scrollConfiguration,
211- required this .startHour,
212- required this .fullDayEventBuilder,
213- required this .weekDetectorBuilder,
214- required this .showWeekDayAtBottom,
215- required this .showHalfHours,
216- required this .showQuarterHours,
217- required this .emulateVerticalOffsetBy,
218- required this .onTileDoubleTap,
219- required this .endHour,
220- required this .onTimestampTap,
221- this .fullDayHeaderTitle = '' ,
222- required this .fullDayHeaderTextConfig,
223- required this .scrollPhysics,
224- required this .scrollListener,
225- required this .multiDayViewScrollController,
226- this .lastScrollOffset = 0.0 ,
227- this .keepScrollOffset = false ,
228- this .showMutliDayBottomLine = true })
229- : super (key: key);
184+ const InternalMultiDayViewPage ({
185+ Key ? key,
186+ required this .showVerticalLine,
187+ required this .weekTitleHeight,
188+ required this .weekDayBuilder,
189+ required this .weekNumberBuilder,
190+ required this .width,
191+ required this .dates,
192+ required this .eventTileBuilder,
193+ required this .controller,
194+ required this .timeLineBuilder,
195+ required this .hourIndicatorSettings,
196+ required this .hourLinePainter,
197+ required this .halfHourIndicatorSettings,
198+ required this .quarterHourIndicatorSettings,
199+ required this .dividerSettings,
200+ required this .showLiveLine,
201+ required this .liveTimeIndicatorSettings,
202+ required this .heightPerMinute,
203+ required this .timeLineWidth,
204+ required this .timeLineOffset,
205+ required this .height,
206+ required this .hourHeight,
207+ required this .eventArranger,
208+ required this .verticalLineOffset,
209+ required this .weekTitleWidth,
210+ required this .weekTitleBackgroundColor,
211+ required this .onTileTap,
212+ required this .onTileLongTap,
213+ required this .onDateLongPress,
214+ required this .onDateTap,
215+ required this .weekDays,
216+ required this .minuteSlotSize,
217+ required this .scrollConfiguration,
218+ required this .startHour,
219+ required this .fullDayEventBuilder,
220+ required this .weekDetectorBuilder,
221+ required this .showWeekDayAtBottom,
222+ required this .showHalfHours,
223+ required this .showQuarterHours,
224+ required this .emulateVerticalOffsetBy,
225+ required this .onTileDoubleTap,
226+ required this .endHour,
227+ required this .onTimestampTap,
228+ required this .fullDayHeaderTextConfig,
229+ required this .scrollPhysics,
230+ required this .scrollListener,
231+ required this .multiDayViewScrollController,
232+ this .backgroundColor,
233+ this .fullDayHeaderTitle = '' ,
234+ this .lastScrollOffset = 0.0 ,
235+ this .keepScrollOffset = false ,
236+ this .showMutliDayBottomLine = true ,
237+ }) : super (key: key);
230238
231239 @override
232240 _InternalMultiDayViewPageState <T > createState () =>
@@ -280,6 +288,7 @@ class _InternalMultiDayViewPageState<T extends Object?>
280288 final direction = Directionality .of (context);
281289
282290 return Container (
291+ color: widget.backgroundColor ?? themeColor.pageBackgroundColor,
283292 height: widget.height + widget.weekTitleHeight,
284293 width: widget.width,
285294 child: Column (
@@ -289,7 +298,8 @@ class _InternalMultiDayViewPageState<T extends Object?>
289298 crossAxisAlignment: CrossAxisAlignment .end,
290299 children: [
291300 ColoredBox (
292- color: themeColor.headerBackgroundColor,
301+ color:
302+ widget.weekTitleBackgroundColor ?? themeColor.multiDayTileColor,
293303 child: SizedBox (
294304 width: widget.width,
295305 child: Row (
0 commit comments