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
@@ -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,