TF-4069 Do not show toast message when disable vacation automatically

This commit is contained in:
dab246
2025-10-14 15:30:13 +07:00
committed by Dat H. Pham
parent d6606aeb48
commit e04b88f87c
7 changed files with 34 additions and 14 deletions
@@ -42,15 +42,17 @@ class SettingsView extends GetWidget<SettingsController> {
Obx(() {
final dashboard = controller.manageAccountDashboardController;
final vacation = dashboard.vacationResponse.value;
final isWebDesktop = controller.responsiveUtils.isWebDesktop(context);
final isWebDesktopResponsive = controller
.responsiveUtils
.isWebDesktop(context);
if (vacation?.vacationResponderIsValid == true) {
return VacationNotificationMessageWidget(
margin: EdgeInsetsDirectional.only(
start: 12,
end: 12,
top: isWebDesktop ? 8 : 0,
bottom: isWebDesktop ? 0 : 16,
top: isWebDesktopResponsive ? 8 : 0,
bottom: isWebDesktopResponsive ? 0 : 16,
),
fromAccountDashBoard: true,
vacationResponse: vacation!,
@@ -65,8 +67,8 @@ class SettingsView extends GetWidget<SettingsController> {
margin: EdgeInsetsDirectional.only(
start: 12,
end: 12,
top: isWebDesktop ? 8 : 0,
bottom: isWebDesktop ? 0 : 16,
top: isWebDesktopResponsive ? 8 : 0,
bottom: isWebDesktopResponsive ? 0 : 16,
),
fromAccountDashBoard: true,
vacationResponse: vacation!,