Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user