Skip to content

Commit

Permalink
feat(calendar): show current month in header
Browse files Browse the repository at this point in the history
  • Loading branch information
JagandeepBrar committed Jun 24, 2022
1 parent 7ad952f commit 925f163
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions lib/modules/dashboard/routes/dashboard/widgets/calendar_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,21 @@ class _State extends State<CalendarView> {
),
rowHeight: 48.0,
rangeSelectionMode: RangeSelectionMode.disabled,
simpleSwipeConfig: const SimpleSwipeConfig(
verticalThreshold: 10.0,
),
focusedDay: _selected,
firstDay: firstDay,
lastDay: lastDay,
//events: widget.events,
headerVisible: false,
headerVisible: true,
headerStyle: const HeaderStyle(
titleCentered: true,
leftChevronVisible: false,
rightChevronVisible: false,
formatButtonVisible: false,
headerPadding: LunaUI.MARGIN_DEFAULT_VERTICAL,
titleTextStyle: TextStyle(
fontSize: LunaUI.FONT_SIZE_H2,
fontWeight: LunaUI.FONT_WEIGHT_BOLD,
)),
startingDayOfWeek:
DashboardDatabase.CALENDAR_STARTING_DAY.read().data,
selectedDayPredicate: (date) =>
Expand Down Expand Up @@ -201,8 +208,8 @@ class _State extends State<CalendarView> {
},
onDaySelected: _onDaySelected,
),
padding: const EdgeInsets.symmetric(
vertical: LunaUI.DEFAULT_MARGIN_SIZE,
padding: const EdgeInsets.only(
bottom: LunaUI.DEFAULT_MARGIN_SIZE,
),
),
),
Expand Down

0 comments on commit 925f163

Please sign in to comment.