added notifications and change in forgot password

This commit is contained in:
amirrezaghabeli
2025-09-02 10:16:37 +03:30
parent 865d166a59
commit 22d1f03b6e
18 changed files with 397 additions and 17 deletions
@@ -0,0 +1,67 @@
import 'package:flutter/material.dart';
import 'package:tm_app/core/utils/size_config.dart';
import 'package:tm_app/views/notification/pages/d_notification_page.dart';
import 'package:tm_app/views/notification/pages/m_notification_page.dart';
import 'package:tm_app/views/notification/pages/t_notification_page.dart';
import 'package:tm_app/views/shared/responsive_builder.dart';
class NotificationScreen extends StatelessWidget {
const NotificationScreen({super.key});
@override
Widget build(BuildContext context) {
SizeConfig.init(context);
return ResponsiveBuilder(
mobile: MobileNotificationPage(),
tablet: TabletNotificationPage(),
desktop: DesktopNotificationPage(),
);
}
}
class NotificationModel {
final String title;
final String description;
final String time;
final String type;
NotificationModel({
required this.title,
required this.description,
required this.time,
required this.type,
});
}
final List<NotificationModel> notifications = [
NotificationModel(
title: 'New Tender Invitation',
description: 'Youve been invited to tender #A-778.',
time: '5 Min',
type: 'new',
),
NotificationModel(
title: 'New Tender Invitation',
description: 'Youve been invited to tender #N-3762.',
time: '28 Min',
type: 'new',
),
NotificationModel(
title: 'Tender Submitted',
description: 'You submitted bid for tender #B-554.',
time: '28 Min',
type: 'submit',
),
NotificationModel(
title: 'New Tender Invitation',
description: 'Youve been invited to tender #N-3762.',
time: '28 Min',
type: 'new',
),
NotificationModel(
title: 'Missing Documents',
description: 'Please upload your company registration certificate.',
time: '2 days ago',
type: 'missing',
),
];