Motion-Toast
Motion-Toast copied to clipboard
when the toast stack multiple times the first one does not dismissed automatically
When the toast displayed multiple times it get stuck and doesn't dismiss automatically. also it prevent the interaction in the ui .
here is the code:
MotionToast(
icon: Icons.info_outline,
title: Text(
title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Colors.white,
),
),
description: Text(
message,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Colors.white,
),
),
position: MotionToastPosition.top,
primaryColor: AppColor.navBarColor,
secondaryColor: AppColor.primaryColor,
width: size.width - 30,
toastDuration: const Duration(seconds: 4),
height: 100,
backgroundType: BackgroundType.solid,
).show(globalContext!);