✨ Add multiday view option to web#542
Open
lavigarg-simform wants to merge 1 commit into
Open
Conversation
5c76a48 to
4a24fa2
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds MultiDayView support to the example app’s web view selector and extends MultiDayView customization for week-title and page backgrounds, while also fixing date-only matching in CalendarEventData.
Changes:
- Added
CalendarView.multidayrouting/label support in the example web selector. - Added
weekTitleBackgroundColorand propagated pagebackgroundColorintoInternalMultiDayViewPage. - Updated
occursOnDateto compare dates without time components and expanded MultiDayView documentation/changelog notes.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
lib/src/multi_day_view/multi_day_view.dart |
Adds the new week-title background parameter and passes background colors into internal pages. |
lib/src/multi_day_view/_internal_multi_day_view_page.dart |
Applies page and week-title background colors inside each MultiDayView page. |
lib/src/calendar_event_data.dart |
Normalizes date comparisons in occursOnDate. |
example/lib/widgets/multi_day_view_widget.dart |
Removes the fixed side-event arranger max width. |
example/lib/widgets/calendar_views.dart |
Routes the new enum option to MultiDayViewWidget. |
example/lib/widgets/calendar_configs.dart |
Adds the localized multiday label to the view selector. |
example/lib/enumerations.dart |
Adds the multiday calendar view option. |
doc/documentation.md |
Documents new MultiDayView customization options. |
CHANGELOG.md |
Adds an unreleased entry for the new MultiDayView option. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4a24fa2 to
7181614
Compare
kavantrivedi
requested changes
May 28, 2026
Contributor
kavantrivedi
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description
This PR adds
MultiDayViewas a selectable calendar view option in the example app on web and introduces new customization parameters toMultiDayView.What changed
Example app
multidayto theCalendarViewenum so users can switch toMultiDayViewfrom the view selector on web.translate.multidayViewin theCalendarConfigwidget.MultiDayViewWidgetinto theCalendarViewsrouting so the example app renders it whenmultidayis selected.maxWidth: 30constraint fromSideEventArranger()inMultiDayViewWidget.MultiDayView/InternalMultiDayViewPageweekTitleBackgroundColor(Color?) toMultiDayViewandInternalMultiDayViewPageto allow customizing the week title strip background. Falls back tothemeColor.multiDayTileColorwhen not provided.backgroundColorpropagation fromMultiDayViewdown toInternalMultiDayViewPage, where it is applied directly on the page container (replaces the now-removedDecoratedBoxwrapper).DecoratedBoxthat previously wrapped thePageView.builder.updateRange(),showWeekEndsremoval block).CalendarEventDataoccursOnDateto usewithoutTimeconsistently on both sides of comparisons, preventing false negatives caused by time-component mismatches.@immutableannotation directly above the class declaration.Constructor style
InternalMultiDayViewPageconstructor to use the trailing-comma / one-parameter-per-line Dart style.Checklist
fix:,feat:,docs:etc).docsand added dartdoc comments with///.examplesordocs.Breaking Change?
Related Issues
No related issues.