Wrap long toast messages instead of truncating
continuous-integration/drone/push Build is passing

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
AmirReza Jamali
2026-06-30 14:36:40 +03:30
parent f43ca4913c
commit ce170f9bc8
+24 -4
View File
@@ -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),
);
}