Skip to content

Can I dismiss the current notification before showing the new one? #131

@rt234cw

Description

@rt234cw

In some scenarios, the user might trigger notifications multiple times within seconds, which results in showing too many notifications.

Is there a way to dismiss the current notification before showing another one, similar to how it works with the ScaffoldMessenger?

ScaffoldMessenger.of(context)..removeCurrentSnackBar()..showSnackBar(SnackBar(
content: Text('$title\n' 'copied to clipboard'), ),);

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