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

Remove Navigator references from conversations pages

This commit is contained in:
2020-04-16 14:58:02 +02:00
parent 3fa45f9744
commit 32c491ae84
10 changed files with 108 additions and 57 deletions

View File

@ -0,0 +1,11 @@
import 'package:comunic/utils/navigation_utils.dart';
import 'package:flutter/material.dart';
class ComunicBackButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return BackButton(
onPressed: () => popPage(context),
);
}
}

View File

@ -10,6 +10,7 @@ typedef OnSelectMenuAction = void Function(BarCallbackActions);
/// Callback actions
enum BarCallbackActions {
OPEN_CUSTOM_WIDGET,
OPEN_NOTIFICATIONS,
OPEN_CONVERSATIONS,
OPEN_NEWEST_POSTS,
@ -22,6 +23,7 @@ enum BarCallbackActions {
OPEN_APP_SETTINGS,
OPEN_USER_FRIENDS_LIST,
OPEN_ABOUT_DIALOG,
OPEN_CONVERSATION,
NONE,
ACTION_LOGOUT
}