From 5c26626f9256cb3f290704718d179cf38562a40d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 11 May 2020 13:53:15 +0200 Subject: [PATCH] Can go back to newest posts screen --- lib/ui/widgets/tablet_mode/tablet_appbar_widget.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ui/widgets/tablet_mode/tablet_appbar_widget.dart b/lib/ui/widgets/tablet_mode/tablet_appbar_widget.dart index 4b34266..cdaa53a 100644 --- a/lib/ui/widgets/tablet_mode/tablet_appbar_widget.dart +++ b/lib/ui/widgets/tablet_mode/tablet_appbar_widget.dart @@ -1,6 +1,7 @@ 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/routes/main_route/main_route.dart'; import 'package:comunic/ui/screens/notifications_screen.dart'; import 'package:comunic/ui/screens/unread_conversations_screen.dart'; import 'package:comunic/ui/widgets/safe_state.dart'; @@ -57,7 +58,9 @@ class _ComunicTabletAppBarWidgetState @override Widget build(BuildContext context) { return AppBar( - title: Text("Comunic"), + title: GestureDetector( + child: Text("Comunic"), + onTap: () => MainController.of(context).openLatestPostsPage()), actions: [ AppBarCustomDropDownWidget( key: notificationsDropdownKey,