From a611e2a14138f150f61b89dd63eb94db274b3dcb Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 3 Jan 2020 12:37:16 +0100 Subject: [PATCH] Fix web version --- lib/components/adaptive_page_layout.dart | 2 +- lib/views/chat_list.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/adaptive_page_layout.dart b/lib/components/adaptive_page_layout.dart index 5802528..218a5af 100644 --- a/lib/components/adaptive_page_layout.dart +++ b/lib/components/adaptive_page_layout.dart @@ -23,7 +23,7 @@ class AdaptivePageLayout extends StatelessWidget { @override Widget build(BuildContext context) { return OrientationBuilder(builder: (context, orientation) { - if (orientation == Orientation.portrait || columnMode(context)) { + if (orientation == Orientation.portrait || !columnMode(context)) { if (primaryPage == FocusPage.FIRST) { return firstScaffold; } else { diff --git a/lib/views/chat_list.dart b/lib/views/chat_list.dart index 32cc0a5..156cd46 100644 --- a/lib/views/chat_list.dart +++ b/lib/views/chat_list.dart @@ -89,6 +89,7 @@ class _ChatListState extends State { onPressed: () => setState(() => searchMode = false), ) : null, + automaticallyImplyLeading: false, actions: searchMode ? null : [