diff --git a/lib/features/notifications/presentation/widgets/notification_widget.dart b/lib/features/notifications/presentation/widgets/notification_widget.dart index cdde4bbf..7f22f5e7 100644 --- a/lib/features/notifications/presentation/widgets/notification_widget.dart +++ b/lib/features/notifications/presentation/widgets/notification_widget.dart @@ -133,7 +133,7 @@ class NotificationWidget extends StatelessWidget { CommentComplaintNotification() => _CommentComplaintWidget(notification: notification as CommentComplaintNotification), CommentDeletedNotification() => _CommentDeletedWidget(notification: notification as CommentDeletedNotification), UserSubscribedNotification() => _UserSubscribedWidget(notification: notification as UserSubscribedNotification), - UnknownNotification() => _UnknownNotificationWidget(notification: notification as UnknownNotification), + UnknownNotification() => const SizedBox.shrink(), }; } } @@ -594,14 +594,6 @@ class _EntityCommentedWidget extends StatelessWidget { } } -class _UnknownNotificationWidget extends StatelessWidget { - const _UnknownNotificationWidget({required this.notification}); - final UnknownNotification notification; - @override - Widget build(BuildContext context) { - return _BaseNotificationWidget(isRead: false, notificationsText: 'Неизвестное уведомление', createdAt: DateTime.now(), onTap: null); - } -} // Новые виджеты для дополнительных типов уведомлений class _PlanSubscriptionExpiredWidget extends StatelessWidget {