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:
@ -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),
|
||||
|
Reference in New Issue
Block a user