Fix bug when tasks are appearing in reverse chronological order

This commit is contained in:
hunteraraujo
2023-09-27 21:00:34 -07:00
parent c739e049c3
commit 3329e6bc4a

View File

@@ -57,6 +57,8 @@ class TaskViewModel with ChangeNotifier {
.where((task) => !_taskService.isTaskDeleted(task.id))
.toList();
_tasks = _tasks.reversed.toList();
notifyListeners();
print("Tasks fetched successfully!");
} catch (error) {