From e39638be7f598bda04c9c54a8b35e585ef7acc16 Mon Sep 17 00:00:00 2001 From: misha Date: Thu, 5 Mar 2026 13:44:33 +0300 Subject: [PATCH] feat(notifications): removed unknown notification from layoute --- .../presentation/widgets/notification_widget.dart | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 {