TF-1792 Hide banner empty trash when mailbox trash empty emails

(cherry picked from commit b0533ebb3e480b737a84085d6743eba1b8c897a6)
This commit is contained in:
dab246
2023-05-04 19:00:31 +07:00
committed by Dat Vu
parent 4d84ac176a
commit 94d066305a
8 changed files with 54 additions and 16 deletions
@@ -57,6 +57,7 @@ extension AppColor on Color {
static const enableSendEmailButtonColor = Color(0xFF007AFF);
static const disableSendEmailButtonColor = Color(0xFFA9B4C2);
static const borderLeftEmailContentColor = Color(0xFFEFEFEF);
static const toastWarningBackgroundColor = Color(0xFFFFC107);
static const toastSuccessBackgroundColor = Color(0xFF4BB34B);
static const toastErrorBackgroundColor = Color(0xFFE64646);
static const toastWithActionBackgroundColor = Color(0xFF3F3F3F);
@@ -48,6 +48,25 @@ class AppToast {
);
}
void showToastWarningMessage(
BuildContext context,
String message,
{
Color? leadingSVGIconColor,
String? leadingSVGIcon,
}
) {
final imagePaths = Get.find<ImagePaths>();
showToastMessage(
context,
message,
backgroundColor: AppColor.toastWarningBackgroundColor,
textColor: Colors.white,
leadingSVGIconColor: leadingSVGIconColor ?? (leadingSVGIcon == null ? Colors.white : null),
leadingSVGIcon: leadingSVGIcon ?? imagePaths.icInfoCircleOutline
);
}
void showToastMessage(
BuildContext context,
String message,