Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,12 @@ class AppToast {
|
|||||||
context: context,
|
context: context,
|
||||||
type: ToastificationType.success,
|
type: ToastificationType.success,
|
||||||
style: ToastificationStyle.flatColored,
|
style: ToastificationStyle.flatColored,
|
||||||
title: Text(message),
|
title: Text(
|
||||||
|
message,
|
||||||
|
maxLines: 5,
|
||||||
|
softWrap: true,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
autoCloseDuration: const Duration(seconds: 3),
|
autoCloseDuration: const Duration(seconds: 3),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -17,7 +22,12 @@ class AppToast {
|
|||||||
context: context,
|
context: context,
|
||||||
type: ToastificationType.error,
|
type: ToastificationType.error,
|
||||||
style: ToastificationStyle.flatColored,
|
style: ToastificationStyle.flatColored,
|
||||||
title: Text(message),
|
title: Text(
|
||||||
|
message,
|
||||||
|
maxLines: 5,
|
||||||
|
softWrap: true,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
autoCloseDuration: const Duration(seconds: 3),
|
autoCloseDuration: const Duration(seconds: 3),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -31,8 +41,18 @@ class AppToast {
|
|||||||
context: context,
|
context: context,
|
||||||
type: ToastificationType.info,
|
type: ToastificationType.info,
|
||||||
style: ToastificationStyle.flatColored,
|
style: ToastificationStyle.flatColored,
|
||||||
title: Text(title),
|
title: Text(
|
||||||
description: Text(description),
|
title,
|
||||||
|
maxLines: 2,
|
||||||
|
softWrap: true,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
description: Text(
|
||||||
|
description,
|
||||||
|
maxLines: 5,
|
||||||
|
softWrap: true,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
autoCloseDuration: const Duration(seconds: 6),
|
autoCloseDuration: const Duration(seconds: 6),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user