From 965f426e384be89bb150213444e741c0c3a77bae Mon Sep 17 00:00:00 2001 From: Ravi Date: Thu, 22 Feb 2024 11:13:08 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9BHeader=20view=20hidden=20fun?= =?UTF-8?q?ctionality=20added=20#299.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - In DayView, MonthView and WeekView hidden method added for hiding header. --- lib/src/day_view/day_view.dart | 5 +++++ lib/src/month_view/month_view.dart | 5 +++++ lib/src/week_view/week_view.dart | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/lib/src/day_view/day_view.dart b/lib/src/day_view/day_view.dart index 98006562..e687c3c8 100644 --- a/lib/src/day_view/day_view.dart +++ b/lib/src/day_view/day_view.dart @@ -911,3 +911,8 @@ class DayViewState extends State> { DateTime get currentDate => DateTime(_currentDate.year, _currentDate.month, _currentDate.day); } + +class DayHeader { + /// Hide Header Widget + static Widget hidden(DateTime date) => SizedBox.shrink(); +} diff --git a/lib/src/month_view/month_view.dart b/lib/src/month_view/month_view.dart index 2966adfd..f0a0b65d 100644 --- a/lib/src/month_view/month_view.dart +++ b/lib/src/month_view/month_view.dart @@ -667,3 +667,8 @@ class _MonthPageBuilder extends StatelessWidget { ); } } + +class MonthHeader { + /// Hide Header Widget + static Widget hidden(DateTime date) => SizedBox.shrink(); +} diff --git a/lib/src/week_view/week_view.dart b/lib/src/week_view/week_view.dart index 2147774b..667ef2b4 100644 --- a/lib/src/week_view/week_view.dart +++ b/lib/src/week_view/week_view.dart @@ -1003,3 +1003,8 @@ class WeekViewState extends State> { bool _showLiveTimeIndicator(List dates) => dates.any((date) => date.compareWithoutTime(DateTime.now())); } + +class WeekHeader { + /// Hide Header Widget + static Widget hidden(DateTime date, DateTime date1) => SizedBox.shrink(); +}