Files
eatvio_app/lib/features/notifications/presentation/pages/notifications_screen.dart
2024-09-11 16:22:12 +03:00

28 lines
1009 B
Dart

import 'package:eatvio_app/features/bottom_navigation_bar/presentation/bloc/notifications_cubit/notifications_cubit.dart';
import 'package:eatvio_app/features/bottom_navigation_bar/presentation/bloc/notifications_cubit/notifications_state.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class NotificationsScreen extends StatelessWidget {
const NotificationsScreen({super.key});
@override
Widget build(BuildContext context) {
return BlocBuilder<NotificationsCubit, NotificationsState>(
builder: (BuildContext context, NotificationsState state) {
return Scaffold(
appBar: AppBar(
title: Text('Уведомления'),
),
body: SingleChildScrollView(
padding: EdgeInsets.all(16),
child: Text(
state is NotificationsStateLoaded ? state.notifications.toString() : 'Уведомлений нет',
),
),
);
},
);
}
}