forked from eatvio/eatvio_app
22 lines
749 B
Dart
22 lines
749 B
Dart
import 'package:eatvio_app/core/theme/theme_helper.dart';
|
|
import 'package:eatvio_app/features/notifications/models/notification_model.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class NotificationWidget extends StatelessWidget {
|
|
const NotificationWidget({super.key, required this.notification});
|
|
final BaseNotificationModel notification;
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: MediaQuery.sizeOf(context).width,
|
|
height: 60,
|
|
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
|
decoration: BoxDecoration(
|
|
color: appTheme.green,
|
|
borderRadius: BorderRadius.circular(18),
|
|
),
|
|
child: Center(child: Text(notification.type.name)),
|
|
);
|
|
}
|
|
}
|