We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e89b4d2 commit 74c942cCopy full SHA for 74c942c
lib/app/modules/detailRoute/controllers/detail_route_controller.dart
@@ -60,12 +60,17 @@ class DetailRouteController extends GetxController {
60
var now = DateTime.now().toUtc();
61
modify.save(modified: () => now);
62
onEdit.value = false;
63
- Get.back();
+
64
+ // Show snackbar
65
Get.snackbar(
66
'Task Updated',
67
'',
68
snackPosition: SnackPosition.BOTTOM,
69
+ duration: const Duration(seconds: 2),
70
);
71
72
+ // Navigate back immediately after showing snackbar
73
+ Get.back();
74
}
75
76
// 'description': controller.modify.draft.description,
0 commit comments