From bc01ab9b0fc2d9aa0a72dcae1b6bf506c2b3456a Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 23 Mar 2023 23:36:16 +0700 Subject: [PATCH] TF-1611 Fix border and padding banner vacation (cherry picked from commit 0d50f922fbd510b5c098a482affd611dcd8e64a6) --- lib/features/email/presentation/email_view.dart | 14 +++++--------- .../vacation_notification_message_widget.dart | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/features/email/presentation/email_view.dart b/lib/features/email/presentation/email_view.dart index 9b1062d68..11b971e4e 100644 --- a/lib/features/email/presentation/email_view.dart +++ b/lib/features/email/presentation/email_view.dart @@ -148,15 +148,11 @@ class EmailView extends GetWidget { (responsiveUtils.isMobile(context) || responsiveUtils.isTablet(context) || responsiveUtils.isLandscapeMobile(context))) { - return Padding( - padding: const EdgeInsets.only(bottom: 5), - child: VacationNotificationMessageWidget( - radius: 0, - margin: EdgeInsets.zero, - vacationResponse: vacation!, - actionGotoVacationSetting: () => controller.mailboxDashBoardController.goToVacationSetting(), - actionEndNow: () => controller.mailboxDashBoardController.disableVacationResponder()), - ); + return VacationNotificationMessageWidget( + margin: const EdgeInsets.only(left: 12, right: 12, bottom: 5), + vacationResponse: vacation!, + actionGotoVacationSetting: controller.mailboxDashBoardController.goToVacationSetting, + actionEndNow: controller.mailboxDashBoardController.disableVacationResponder); } else { return const SizedBox.shrink(); } diff --git a/lib/features/manage_account/presentation/vacation/widgets/vacation_notification_message_widget.dart b/lib/features/manage_account/presentation/vacation/widgets/vacation_notification_message_widget.dart index 03d6be0a7..4dfb120c3 100644 --- a/lib/features/manage_account/presentation/vacation/widgets/vacation_notification_message_widget.dart +++ b/lib/features/manage_account/presentation/vacation/widgets/vacation_notification_message_widget.dart @@ -106,7 +106,7 @@ class VacationNotificationMessageWidget extends StatelessWidget { if (leadingIcon != null) leadingIcon!, Expanded( child: Padding( - padding: const EdgeInsets.only(right: 12), + padding: const EdgeInsets.only(right: 12, top: 12), child: Center( child: Text( vacationResponse.getNotificationMessage(context),