Skip to content

Add Database Persistence for Tasks #8

@Rohanvish4

Description

@Rohanvish4

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 )

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions