From 1ad880a021ef4542b1ad6b87d56968c4492e2952 Mon Sep 17 00:00:00 2001 From: Vaibhav Surve Date: Tue, 8 Jul 2025 15:33:35 +0530 Subject: [PATCH] feat(notes): add feedback messages for note update actions --- lib/controller/directory/notes_controller.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/controller/directory/notes_controller.dart b/lib/controller/directory/notes_controller.dart index dca0201..709b4e0 100644 --- a/lib/controller/directory/notes_controller.dart +++ b/lib/controller/directory/notes_controller.dart @@ -63,6 +63,11 @@ class NotesController extends GetxController { if (oldNote != null && oldNote.note.trim() == updatedNote.note.trim()) { logSafe("No changes detected in note. id: ${updatedNote.id}"); + showAppSnackbar( + title: "No Changes", + message: "No changes were made to the note.", + type: SnackbarType.info, + ); return; } @@ -79,6 +84,11 @@ class NotesController extends GetxController { notesList[index] = updatedNote; notesList.refresh(); } + showAppSnackbar( + title: "Success", + message: "Note updated successfully.", + type: SnackbarType.success, + ); } else { showAppSnackbar( title: "Error",