Skip to content

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

Description

@Mustafa7Ibrahim

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions