Skip to content

✨ Add Schedule View with customizable event display, navigation, localization, and theming - #545

Open
lavigarg-simform wants to merge 1 commit into
fix/use_timeOfDay_instead_DateTime_eventDatafrom
feat/schedule-view
Open

lavigarg-simform wants to merge 1 commit into
fix/use_timeOfDay_instead_DateTime_eventDatafrom
feat/schedule-view

Conversation

@lavigarg-simform

@lavigarg-simform lavigarg-simform commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a new ScheduleView agenda-style calendar view to the package and example app.

This PR introduces:

  • ScheduleView support in the core package and CalendarView enum
  • a new ScheduleViewThemeData theme extension and calendar theme plumbing
  • schedule-specific default widgets for month headers, day detectors, event tiles, and empty states
  • a new example demo page with runtime schedule settings, today navigation, and demo events
  • expanded localization support for schedule view labels, month names, and month/year formatting
  • improved number/date localization for non-Latin locales
  • tests covering ScheduleView sparse mode and localization behavior

The new view is fully integrated into the example app navigation and theme system without breaking existing views.

Checklist

  • The title of my PR starts with a [Conventional Commit] prefix (fix:, feat:, docs: etc).
  • I have followed the [Contributor Guide] when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #101

Demo

schedule_view_demo.mp4

@lavigarg-simform
lavigarg-simform force-pushed the feat/schedule-view branch 2 times, most recently from 108f5cd to 7f3e6b6 Compare June 5, 2026 15:52
@lavigarg-simform lavigarg-simform changed the title ✨ Add Schedule View with customizable event display and navigation ✨ Add Schedule View with customizable event display, navigation, localization, and theming Jun 5, 2026
@lavigarg-simform lavigarg-simform linked an issue Jun 8, 2026 that may be closed by this pull request
@lavigarg-simform
lavigarg-simform marked this pull request as ready for review June 8, 2026 10:56
@lavigarg-simform
lavigarg-simform force-pushed the feat/schedule-view branch 2 times, most recently from ebf8070 to f456092 Compare June 8, 2026 12:23
@kavantrivedi
kavantrivedi requested a review from Copilot June 15, 2026 07:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new agenda-style ScheduleView to the calendar_view package and wires it into theming, localization (months + digit shaping), documentation, tests, and the example app’s navigation and demo UI.

Changes:

  • Introduces ScheduleView (core widget + internal month page renderer) with sparse/dense month rendering, navigation, and customizable builders.
  • Expands localization primitives (localized month names/abbreviations + digit shaping for large numbers) and adds tests for these behaviors.
  • Updates theming and the example app to demo schedule view configuration, month headers, event tiles, and localized formatting.

Reviewed changes

Copilot reviewed 48 out of 60 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
test/schedule_view_test.dart Adds widget tests for ScheduleView sparse mode, top date layout, and settling behavior.
test/extensions_test.dart Adds tests for digit localization and localized month/year formatting.
lib/src/week_view/week_view.dart Removes an unused import.
lib/src/week_view/_internal_week_view_page.dart Removes an unused import.
lib/src/typedefs.dart Adds ScheduleView-related builder typedefs.
lib/src/theme/schedule_view_theme_data.dart Introduces ScheduleViewThemeData ThemeExtension (light/dark + lerp/copyWith).
lib/src/theme/light_app_colors.dart Adds colors needed by ScheduleView defaults.
lib/src/theme/dark_app_colors.dart Adds colors needed by ScheduleView defaults (dark).
lib/src/theme/calendar_theme_data.dart Adds scheduleViewTheme to CalendarThemeData.
lib/src/schedule_view/schedule_view.dart Adds the main ScheduleView widget + state (lazy month building, bounds, navigation).
lib/src/schedule_view/_internal_schedule_view_page.dart Adds renderer for a month section in ScheduleView (headers, day rows, tiles).
lib/src/multi_day_view/multi_day_view.dart Removes an unused import.
lib/src/multi_day_view/_internal_multi_day_view_page.dart Switches multi-day theme lookup to multiDayViewColors.
lib/src/month_view/month_view.dart Removes an unused import.
lib/src/models.dart Adds MonthEntry model used by ScheduleView’s lazy month section list.
lib/src/localization/package_locals.dart Adds localized month names/abbreviations and improves digit localization implementation.
lib/src/localization/calendar_localizations.dart Adds months/monthsAbbr fields and defaults to CalendarLocalizations.
lib/src/extensions.dart Adds month name/year helpers, weekday abbreviation localization, and scheduleView theme accessor.
lib/src/enumerations.dart Adds ScheduleDateLayout enum.
lib/src/day_view/day_view.dart Removes an unused import.
lib/src/day_view/_internal_day_view_page.dart Updates import from modals.dart to models.dart.
lib/src/components/month_view_components.dart Removes an unused import.
lib/calendar_view.dart Exports ScheduleView + schedule theme and adjusts exports (including extensions/models).
example/pubspec.yaml Adds assets for schedule month header images.
example/lib/widgets/schedule_view/schedule_view_widget.dart Adds ScheduleView demo widget with callbacks, sorting, and floating month header.
example/lib/widgets/schedule_view/schedule_view_settings.dart Adds runtime settings UI (dense/sparse, date layout) for the schedule demo.
example/lib/widgets/schedule_view/schedule_view_month_header.dart Adds image-based month header widget for schedule demo.
example/lib/widgets/schedule_view/schedule_view_event_tile.dart Adds custom event tile for schedule demo (badges, localized time label).
example/lib/widgets/schedule_view/schedule_view_day_detector.dart Adds custom date detector widget supporting left/top layouts.
example/lib/widgets/schedule_view/empty_text_widget.dart Adds empty-day placeholder widget used in schedule demo.
example/lib/widgets/calendar_views.dart Adds ScheduleViewWidget to view switcher.
example/lib/widgets/calendar_configs.dart Adds schedule view name in view selection UI.
example/lib/theme/dark_app_colors.dart Expands example app dark palette for schedule demo.
example/lib/theme/app_theme.dart Registers ScheduleViewThemeData and refactors extension registration.
example/lib/theme/app_theme_extension.dart Extends example theme extension with background/surface/onSurface colors.
example/lib/theme/app_colors.dart Adds basic surface/background/transparent colors for example theme extension.
example/lib/pages/schedule_view_page.dart Adds a dedicated schedule demo page with settings + jump-to-today FAB.
example/lib/pages/mobile/mobile_home_page.dart Adds navigation button to ScheduleView demo on mobile home page.
example/lib/pages/home_page.dart Adds a recurring monthly demo event and minor comment adjustment.
example/lib/main.dart Adds ScheduleViewThemeData to CalendarThemeProvider setup.
example/lib/localization/calendar_locales.dart Wires localized months/month abbreviations into example’s CalendarLocales.
example/lib/l10n/app_es.arb Adds schedule view strings (Spanish).
example/lib/l10n/app_en.arb Adds schedule view strings (English).
example/lib/l10n/app_ar.arb Adds schedule view strings (Arabic) + fixes one translation string.
example/lib/extension.dart Improves localized date/time formatting and adds month asset mapping.
example/lib/enumerations.dart Adds schedule to example CalendarView enum and adds Months enum for assets.
doc/documentation.md Documents ScheduleView usage, customization, theming, and navigation.
CHANGELOG.md Adds entries for ScheduleView and localization/theme API updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/src/extensions.dart Resolved
Comment thread lib/calendar_view.dart Resolved
Comment thread test/schedule_view_test.dart Resolved
Comment thread test/schedule_view_test.dart Resolved
Comment thread test/schedule_view_test.dart Resolved
Comment thread test/schedule_view_test.dart Resolved
Comment thread lib/src/models.dart Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] A schedule style view

3 participants