1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Ready to implement the list of notifications

This commit is contained in:
2019-11-01 14:55:28 +01:00
parent 481d718338
commit 61124c34ef
7 changed files with 230 additions and 0 deletions

View File

@ -10,6 +10,7 @@ typedef OnSelectMenuAction = void Function(BarCallbackActions);
/// Callback actions
enum BarCallbackActions {
OPEN_NOTIFICATIONS,
OPEN_CONVERSATIONS,
OPEN_NEWEST_POSTS,
OPEN_FRIENDS,
@ -20,6 +21,7 @@ enum BarCallbackActions {
}
Color _primaryColor() => darkTheme() ? Colors.black : Colors.blue;
Color _secondaryColor() => darkTheme() ? darkAccentColor : Colors.white;
/// Menu item information
@ -52,6 +54,10 @@ class _ActionMenuItem {
/// List of menu items to show
final _menuItems = <_MenuItem>[
_MenuItem(
label: tr("Notifications"),
icon: Icon(Icons.notifications),
action: BarCallbackActions.OPEN_NOTIFICATIONS),
_MenuItem(
label: tr("Conversations"),
icon: Icon(Icons.comment),