Fix web version

This commit is contained in:
Christian Pauly 2020-01-03 12:37:16 +01:00
parent 4dd31d961a
commit a611e2a141
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -89,6 +89,7 @@ class _ChatListState extends State<ChatList> {
onPressed: () => setState(() => searchMode = false),
)
: null,
automaticallyImplyLeading: false,
actions: searchMode
? null
: <Widget>[