1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Display the list of notifications in the dropdown

This commit is contained in:
Pierre HUBERT 2020-05-07 18:16:33 +02:00
parent 24e08d63f8
commit de063bd797

View File

@ -1,9 +1,9 @@
import 'package:comunic/helpers/events_helper.dart';
import 'package:comunic/helpers/notifications_helper.dart';
import 'package:comunic/models/count_unread_notifications.dart';
import 'package:comunic/ui/screens/notifications_screen.dart';
import 'package:comunic/ui/widgets/safe_state.dart';
import 'package:comunic/ui/widgets/tablet_mode/appbar_custom_dropdown_widget.dart';
import 'package:comunic/utils/ui_utils.dart';
import 'package:flutter/material.dart';
/// Comunic tablet AppBar widget
@ -62,7 +62,10 @@ class _ComunicTabletAppBarWidgetState
key: notificationsDropdownKey,
icon: Icon(Icons.notifications),
notificationsBadge: _unreadNotifications.notifications,
onBuildOverlay: (c) => buildCenteredProgressBar(),
onBuildOverlay: (c) => Padding(
padding: const EdgeInsets.all(8.0),
child: NotificationsScreen(),
),
),
AppBarCustomDropDownWidget(
key: conversationsDropdownKey,