Skip to content

Commit

Permalink
Fixed styles for calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
prijindal committed May 1, 2024
1 parent 5436f97 commit 6bf3a67
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/components/calendars.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,29 @@ class _CalendarsSubPageState extends State<CalendarsSubPage> {
_focusedDay = focusedDay;
});
},
availableCalendarFormats: const {CalendarFormat.month: 'Month'},
daysOfWeekStyle: DaysOfWeekStyle(
weekdayStyle: TextStyle(
color: Theme.of(context).colorScheme.inverseSurface,
),
weekendStyle: TextStyle(
color: Theme.of(context).colorScheme.outline,
),
),
calendarStyle: CalendarStyle(
markerDecoration: BoxDecoration(
color: Theme.of(context).colorScheme.primary,
shape: BoxShape.circle,
),
selectedDecoration: BoxDecoration(
color: Theme.of(context).colorScheme.inversePrimary,
shape: BoxShape.circle,
),
selectedTextStyle: TextStyle(
color: Theme.of(context).colorScheme.inverseSurface,
fontSize: 16.0,
),
),
currentDay: DateTime.now(),
focusedDay: _focusedDay,
firstDay: _firstDay,
Expand Down

0 comments on commit 6bf3a67

Please sign in to comment.