From 4f3faec5fe08858ffdb1a0a6021e2b94eb1d1483 Mon Sep 17 00:00:00 2001 From: eymeric Date: Sat, 20 Jan 2024 15:29:23 +0100 Subject: [PATCH] dont use useless param --- apps/onyx/lib/screens/mails/pages/emails_page.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/onyx/lib/screens/mails/pages/emails_page.dart b/apps/onyx/lib/screens/mails/pages/emails_page.dart index 251a1a82..c7ca7642 100644 --- a/apps/onyx/lib/screens/mails/pages/emails_page.dart +++ b/apps/onyx/lib/screens/mails/pages/emails_page.dart @@ -76,14 +76,12 @@ class MailsPage extends StatelessWidget { break; case MailStatus.sended: WidgetsBinding.instance.addPostFrameCallback( - (timeStamp) { - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: const Text("Mail envoyé"), - duration: Res.animationDuration, - ), - ); - }, + (_) => ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: const Text("Mail envoyé"), + duration: Res.animationDuration, + ), + ), ); break; case MailStatus.updated: