Skip to content

Commit

Permalink
fix: 🐛Header view hidden functionality added #299.
Browse files Browse the repository at this point in the history
- In DayView, MonthView and WeekView hidden method added for hiding header.
  • Loading branch information
ravilsimform committed Feb 22, 2024
1 parent ed7288e commit 965f426
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/day_view/day_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -911,3 +911,8 @@ class DayViewState<T extends Object?> extends State<DayView<T>> {
DateTime get currentDate =>
DateTime(_currentDate.year, _currentDate.month, _currentDate.day);
}

class DayHeader {
/// Hide Header Widget
static Widget hidden(DateTime date) => SizedBox.shrink();
}
5 changes: 5 additions & 0 deletions lib/src/month_view/month_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -667,3 +667,8 @@ class _MonthPageBuilder<T> extends StatelessWidget {
);
}
}

class MonthHeader {
/// Hide Header Widget
static Widget hidden(DateTime date) => SizedBox.shrink();
}
5 changes: 5 additions & 0 deletions lib/src/week_view/week_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1003,3 +1003,8 @@ class WeekViewState<T extends Object?> extends State<WeekView<T>> {
bool _showLiveTimeIndicator(List<DateTime> dates) =>
dates.any((date) => date.compareWithoutTime(DateTime.now()));
}

class WeekHeader {
/// Hide Header Widget
static Widget hidden(DateTime date, DateTime date1) => SizedBox.shrink();
}

0 comments on commit 965f426

Please sign in to comment.