Fix all dart analyze warnings in the Flutter frontend

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 13:57:03 -04:00
co-authored by Claude Sonnet 4.6
parent cb2b3c6af7
commit f34dfe8386
5 changed files with 34 additions and 30 deletions
@@ -9,7 +9,7 @@ class NotificationList extends StatefulWidget {
const NotificationList({super.key});
@override
_NotificationListState createState() => _NotificationListState();
State<NotificationList> createState() => _NotificationListState();
}
class _NotificationListState extends State<NotificationList> {
@@ -61,6 +61,7 @@ class _NotificationListState extends State<NotificationList> {
return false;
}
await BackendAPI.instance.markNotificationAsRead(item.id);
if (!context.mounted) return false;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Event marked as read'),
@@ -95,6 +96,7 @@ class _NotificationListState extends State<NotificationList> {
return false;
}
await BackendAPI.instance.markNotificationAsNew(item.id);
if (!context.mounted) return false;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Event marked as unread'),