-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Problem
The application currently stores tasks in an in-memory list within the TaskViewModel. This means all tasks are lost when the application is closed. To be useful, the app needs to persist this data.
Problem Description
The TaskViewModel uses a mutableStateListOf() to manage tasks. This list is ephemeral. The goal is to integrate a local database using Android's Room Persistence Library or any other to store and retrieve tasks, so that user data is not lost between app sessions.
Expected Behavior
•When a user adds, edits, or deletes a task, the change should be saved to a local database.
•When the application is launched, it should load and display all tasks from the database.
•The app should function correctly offline/online, with all data being read from and written to the local database.
Acceptance criteria
Implement this feature using any storage or backend ( e.g. : Room Databse , persistance storage , firebase )