We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df4ad07 commit e0d31fdCopy full SHA for e0d31fd
1 file changed
lib/app/modules/detailRoute/views/detail_route_view.dart
@@ -115,6 +115,26 @@ class DetailRouteView extends GetView<DetailRouteController> {
115
// Cancel → stay
116
return false;
117
}
118
+ if (save == true) {
119
+ controller.saveChanges();
120
+ controller.onEdit.value = false;
121
+ WidgetsBinding.instance.addPostFrameCallback((_) {
122
+ ScaffoldMessenger.of(context).showSnackBar(
123
+ SnackBar(
124
+ backgroundColor: tColors.secondaryBackgroundColor,
125
+ content: Text(
126
+ SentenceManager(
127
+ currentLanguage: AppSettings.selectedLanguage,
128
+ ).sentences
129
+ .taskUpdated,
130
+ style: TextStyle(
131
+ color: tColors.primaryTextColor,
132
+ ),
133
134
135
+ );
136
+ });
137
+ }
138
// Yes (true) or No (false) → both allow popping the screen
139
return true;
140
},
0 commit comments