feat(notificaion): add notificaion for last day

This commit is contained in:
mso7nueh
2025-07-14 17:08:53 +03:00
parent 452c603b95
commit 09c53a6492
5 changed files with 34 additions and 7 deletions

View File

@@ -42,6 +42,7 @@ class NotificationsCubit extends Cubit<NotificationsState> {
ChosenPlanTomorrowReminderToConsultantNotification.fromJson(notificationJson, type),
NotificationType.planSubscriptionPaidToAuthor => PlanSubscriptionPaidToAuthorNotification.fromJson(notificationJson, type),
NotificationType.chosenPlanFinishedToConsultant => ChosenPlanFinishedToConsultantNotification.fromJson(notificationJson, type),
NotificationType.chosenPlanLastDayFinishedForUser => ChosenPlanLastDayFinishedForUser.fromJson(notificationJson, type),
NotificationType.unknown => UnknownNotification(type: type),
};
} catch (e) {

View File

@@ -53,6 +53,7 @@ class NotificationWidget extends StatelessWidget {
ChosenPlanFinishedToConsultantNotification() => _ChosenPlanFinishedToConsultantWidget(
notification: notification as ChosenPlanFinishedToConsultantNotification,
),
ChosenPlanLastDayFinishedForUser() => Text((notification as ChosenPlanLastDayFinishedForUser).type.toString()),
UnknownNotification() => const SizedBox.shrink(),
};
}