Files
tm_app/lib/views/notification/pages/notification_screen.dart
T
2025-09-02 10:16:37 +03:30

68 lines
1.8 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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',
),
];