mirrored_repositories/Pretty-Ui/Ngamar/lib/features/notification
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ngamar/core/core.dart';
import 'package:ngamar/features/notification/screens/widgets/notification_card.dart';

import '../data/notification_model.dart';

class NotificationView extends StatelessWidget {
  const NotificationView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Text(
          'Notifications',
          style: AppTypography.kSemiBold16.copyWith(color: AppColors.kGrey100),
        ),
      ),
      body: ListView.separated(
        physics: const BouncingScrollPhysics(),
        padding: EdgeInsets.symmetric(horizontal: 30.w),
        itemBuilder: (context, index) {
          return NotificationCard(notifications: notificationList[index]);
        },
        itemCount: notificationList.length,
        separatorBuilder: (context, index) {
          return const Divider();
        },
      ),
    );
  }
}
