From 41d96ffd4cb53c832c410bdcff492a3656fe44dc Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Wed, 1 Nov 2023 08:06:21 +0100 Subject: [PATCH] Imrpove month weekday selected --- app/lib/pages/calendar/list.dart | 2 +- app/lib/pages/calendar/month.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/pages/calendar/list.dart b/app/lib/pages/calendar/list.dart index 7690fa2169c..8becec1e629 100644 --- a/app/lib/pages/calendar/list.dart +++ b/app/lib/pages/calendar/list.dart @@ -161,7 +161,7 @@ class _CalendarListViewState extends State { List>>( _controller, (context, item, index) { - var date = DateTime.now().onlyDate(); + var date = DateTime.now(); if (widget.filter.past) { date = date.subtract(Duration(days: index)); } else { diff --git a/app/lib/pages/calendar/month.dart b/app/lib/pages/calendar/month.dart index dd84c418652..72807f78548 100644 --- a/app/lib/pages/calendar/month.dart +++ b/app/lib/pages/calendar/month.dart @@ -233,7 +233,7 @@ class _CalendarMonthViewState extends State { .textTheme .headlineSmall ?.copyWith( - color: current.isSameDay(DateTime.now()) + color: current.weekday == _now.weekday ? Theme.of(context).primaryColor : null, ),