Date selector now works

This commit is contained in:
2023-09-06 19:21:15 +05:30
parent 8b0b770460
commit c74876ecb8
2 changed files with 12 additions and 9 deletions

View File

@@ -162,8 +162,8 @@ class GlobalModel extends ChangeNotifier {
}
}
void setDateToToday() {
this.currentDate = DateTime.now();
void setDateToADay([DateTime? aDay]) {
this.currentDate = aDay ?? DateTime.now();
this.isMenuAvailable();
notifyListeners();
}