Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/flutter_calendar_carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class CalendarCarousel<T extends EventInterface> extends StatefulWidget {
final Color weekDayBackgroundColor;
final bool weekFormat;
final bool showWeekDays;
final bool upperCaseWeekDays;
final bool showHeader;
final bool showHeaderButton;
final MultipleMarkedDates? multipleMarkedDates;
Expand Down Expand Up @@ -195,6 +196,7 @@ class CalendarCarousel<T extends EventInterface> extends StatefulWidget {
this.customWeekDayBuilder,
this.customDayBuilder,
this.showWeekDays = true,
this.upperCaseWeekDays = false,
this.weekFormat = false,
this.showHeader = true,
this.showHeaderButton = true,
Expand Down Expand Up @@ -382,6 +384,7 @@ class _CalendarState<T extends EventInterface>
firstDayOfWeek,
widget.customWeekDayBuilder,
showWeekdays: widget.showWeekDays,
upperCaseWeekDays: widget.upperCaseWeekDays,
weekdayFormat: widget.weekDayFormat,
weekdayMargin: widget.weekDayMargin,
weekdayPadding: widget.weekDayPadding,
Expand Down
6 changes: 4 additions & 2 deletions lib/src/weekday_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class WeekdayRow extends StatelessWidget {
required this.weekdayPadding,
required this.weekdayBackgroundColor,
required this.weekdayTextStyle,
required this.localeDate})
required this.localeDate,
this.upperCaseWeekDays = false})
: super(key: key);

final WeekdayBuilder? customWeekdayBuilder;
Expand All @@ -25,6 +26,7 @@ class WeekdayRow extends StatelessWidget {
final TextStyle? weekdayTextStyle;
final DateFormat localeDate;
final int firstDayOfWeek;
final bool upperCaseWeekDays;

Widget _weekdayContainer(int weekday, String weekDayName) {
final customWeekdayBuilder = this.customWeekdayBuilder;
Expand All @@ -42,7 +44,7 @@ class WeekdayRow extends StatelessWidget {
child: DefaultTextStyle(
style: defaultWeekdayTextStyle,
child: Text(
weekDayName,
upperCaseWeekDays ? weekDayName.toUpperCase() : weekDayName,
semanticsLabel: weekDayName,
style: weekdayTextStyle,
),
Expand Down