diff --git a/lib/core/utils/app_toast.dart b/lib/core/utils/app_toast.dart index d7512ab..ebe86dc 100644 --- a/lib/core/utils/app_toast.dart +++ b/lib/core/utils/app_toast.dart @@ -7,7 +7,12 @@ class AppToast { context: context, type: ToastificationType.success, style: ToastificationStyle.flatColored, - title: Text(message), + title: Text( + message, + maxLines: 5, + softWrap: true, + overflow: TextOverflow.ellipsis, + ), autoCloseDuration: const Duration(seconds: 3), ); } @@ -17,7 +22,12 @@ class AppToast { context: context, type: ToastificationType.error, style: ToastificationStyle.flatColored, - title: Text(message), + title: Text( + message, + maxLines: 5, + softWrap: true, + overflow: TextOverflow.ellipsis, + ), autoCloseDuration: const Duration(seconds: 3), ); } @@ -31,8 +41,18 @@ class AppToast { context: context, type: ToastificationType.info, style: ToastificationStyle.flatColored, - title: Text(title), - description: Text(description), + title: Text( + title, + maxLines: 2, + softWrap: true, + overflow: TextOverflow.ellipsis, + ), + description: Text( + description, + maxLines: 5, + softWrap: true, + overflow: TextOverflow.ellipsis, + ), autoCloseDuration: const Duration(seconds: 6), ); }