Skip to content

Commit 74c942c

Browse files
committed
fix(detailRoute): show snackbar on task update and navigate back
1 parent e89b4d2 commit 74c942c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/app/modules/detailRoute/controllers/detail_route_controller.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,17 @@ class DetailRouteController extends GetxController {
6060
var now = DateTime.now().toUtc();
6161
modify.save(modified: () => now);
6262
onEdit.value = false;
63-
Get.back();
63+
64+
// Show snackbar
6465
Get.snackbar(
6566
'Task Updated',
6667
'',
6768
snackPosition: SnackPosition.BOTTOM,
69+
duration: const Duration(seconds: 2),
6870
);
71+
72+
// Navigate back immediately after showing snackbar
73+
Get.back();
6974
}
7075

7176
// 'description': controller.modify.draft.description,

0 commit comments

Comments
 (0)