summaryrefslogtreecommitdiffstats
path: root/lib/data/data_providers/time_notifier.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/data/data_providers/time_notifier.dart')
-rw-r--r--lib/data/data_providers/time_notifier.dart3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/data/data_providers/time_notifier.dart b/lib/data/data_providers/time_notifier.dart
index 9737b2b..c290526 100644
--- a/lib/data/data_providers/time_notifier.dart
+++ b/lib/data/data_providers/time_notifier.dart
@@ -11,6 +11,8 @@ class CurrentTimeNotifier extends StateNotifier<DateTime> {
}
bool _hasInitialized = false;
+ int? selectedYear;
+ bool isYearChanged = false;
void _initializeTimer() {
Timer.periodic(const Duration(seconds: 1), (timer) {
@@ -20,5 +22,6 @@ class CurrentTimeNotifier extends StateNotifier<DateTime> {
void setCurrentTime(DateTime newTime) {
state = newTime;
+ selectedYear = newTime.year;
}
}