TF-239 Delete multiple emails permanently

This commit is contained in:
dab246
2022-04-05 11:00:18 +07:00
committed by Dat H. Pham
parent b2e98087dd
commit 6445e3076f
18 changed files with 382 additions and 20 deletions
@@ -87,6 +87,7 @@ class ImagePaths {
String get icSendToastError => _getImagePath('ic_send_toast_error.svg');
String get icEmpty => _getImagePath('ic_empty.svg');
String get icNotConnection => _getImagePath('ic_not_connection.svg');
String get icDeleteTrash => _getImagePath('ic_delete_trash.svg');
String _getImagePath(String imageName) {
return AssetsPaths.images + imageName;
+6 -4
View File
@@ -61,9 +61,11 @@ class AppToast {
);
}
void showToastWithIcon(BuildContext context,
{String? message, String? icon, Color? bgColor,
Color? textColor, double? radius, EdgeInsets? padding, TextStyle? textStyle}) {
void showToastWithIcon(BuildContext context, {
String? message, String? icon, Color? bgColor,
Color? textColor, double? radius, EdgeInsets? padding,
TextStyle? textStyle, double? widthToast}) {
double sizeWidth = context.width > 360 ? 360 : context.width - 40;
final toast = Material(
color: bgColor ?? Colors.white,
elevation: 10,
@@ -75,7 +77,7 @@ class AppToast {
borderRadius: BorderRadius.circular(radius ?? 10.0),
color: bgColor ?? Colors.white,
),
width: 320,
width: widthToast ?? sizeWidth,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [