TF-239 Delete multiple emails permanently
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user