Skip to content

Commit

Permalink
Imrpove month weekday selected
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Nov 1, 2023
1 parent 31c6647 commit 41d96ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/pages/calendar/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class _CalendarListViewState extends State<CalendarListView> {
List<SourcedConnectedModel<CalendarItem, Event?>>>(
_controller,
(context, item, index) {
var date = DateTime.now().onlyDate();
var date = DateTime.now();
if (widget.filter.past) {
date = date.subtract(Duration(days: index));
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/pages/calendar/month.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class _CalendarMonthViewState extends State<CalendarMonthView> {
.textTheme
.headlineSmall
?.copyWith(
color: current.isSameDay(DateTime.now())
color: current.weekday == _now.weekday
? Theme.of(context).primaryColor
: null,
),
Expand Down

0 comments on commit 41d96ff

Please sign in to comment.