Motion-Toast icon indicating copy to clipboard operation
Motion-Toast copied to clipboard

when the toast stack multiple times the first one does not dismissed automatically

Open Mustafa7Ibrahim opened this issue 1 year ago • 0 comments

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!);

Mustafa7Ibrahim avatar Sep 27 '23 10:09 Mustafa7Ibrahim