diff --git a/CHANGELOG.md b/CHANGELOG.md index f2c885f7..8e65f6f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ - # [1.1.1] (UnReleased) +- Added showWeekTileBorder field whether to show border for header in month view. [#306](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/306) - Added support for double tapping gestures on any event in day, week, and month view. [#195](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/195) - Added support for horizontal scroll physics of week and month view page. [#314](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/314) - Fixed issue related to the live time indicator is that it is not in the correct position when startHour is set for the week and day view. [#346](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/346) diff --git a/lib/src/month_view/month_view.dart b/lib/src/month_view/month_view.dart index 4c62e989..3f974e71 100644 --- a/lib/src/month_view/month_view.dart +++ b/lib/src/month_view/month_view.dart @@ -90,6 +90,12 @@ class MonthView extends StatefulWidget { /// [borderColor] to define color of the border. final bool showBorder; + /// Defines whether to show default borders or not for weekTile. + /// + /// Default value is true + /// + final bool showWeekTileBorder; + /// Defines width of default border /// /// Default value is [Colors.blue] @@ -194,6 +200,7 @@ class MonthView extends StatefulWidget { this.pagePhysics = const ClampingScrollPhysics(), this.pageViewPhysics, this.onEventDoubleTap, + this.showWeekTileBorder = true, }) : assert(!(onHeaderTitleTap != null && headerBuilder != null), "can't use [onHeaderTitleTap] & [headerBuilder] simultaneously"), super(key: key); @@ -521,6 +528,7 @@ class MonthViewState extends State> { return WeekDayTile( dayIndex: index, weekDayStringBuilder: widget.weekDayStringBuilder, + displayBorder: widget.showWeekTileBorder, ); }