Elegant-Notification icon indicating copy to clipboard operation
Elegant-Notification copied to clipboard

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

Open rt234cw opened this issue 6 months ago • 0 comments

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'), ),);

rt234cw avatar Aug 15 '24 07:08 rt234cw