diff --git a/frontend/lib/notifications/notification_list.dart b/frontend/lib/notifications/notification_list.dart index 4947b44..cdf8e7d 100644 --- a/frontend/lib/notifications/notification_list.dart +++ b/frontend/lib/notifications/notification_list.dart @@ -169,9 +169,11 @@ class _NotificationListState extends State { fetchNextPage: fetchNextPage, builderDelegate: PagedChildBuilderDelegate( itemBuilder: (context, item, index) { - return Column( - children: [ - Dismissible( + return Card( + color: item.isNew + ? Theme.of(context).colorScheme.secondaryContainer + : null, + child: Dismissible( key: UniqueKey(), confirmDismiss: (direction) => direction == DismissDirection.startToEnd @@ -192,9 +194,6 @@ class _NotificationListState extends State { child: Icon(Icons.done), ), child: ListTile( - tileColor: item.isNew - ? Theme.of(context).colorScheme.secondaryContainer - : null, leading: Icon( item.notificationType.icon, color: item.isNew @@ -244,8 +243,6 @@ class _NotificationListState extends State { isThreeLine: true, ), ), - Divider(), - ], ); }, ),