Skip to content

Commit

Permalink
dont use useless param
Browse files Browse the repository at this point in the history
  • Loading branch information
hatch01 committed Jan 20, 2024
1 parent 3d4870d commit 4f3faec
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions apps/onyx/lib/screens/mails/pages/emails_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4f3faec

Please sign in to comment.