feat: Add category deletion functionality and enhance category dialog for editing
This commit is contained in:
@@ -85,6 +85,10 @@ class NoteRepository {
|
||||
debugPrint('Category inserted to database');
|
||||
}
|
||||
|
||||
Future<void> deleteCategory(String id) async {
|
||||
await _database.deleteCategory(id);
|
||||
}
|
||||
|
||||
Future<Note> createNote(Note note) async {
|
||||
await _database.insertNoteAtTop(
|
||||
NotesCompanion.insert(
|
||||
|
||||
Reference in New Issue
Block a user