From 225d5a098339e9e1fd6f24670698074382cf3370 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Mon, 19 Sep 2022 11:09:29 +0800 Subject: [PATCH] fix: place obx down --- flutter/lib/desktop/pages/desktop_tab_page.dart | 4 ++-- flutter/lib/desktop/pages/remote_tab_page.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter/lib/desktop/pages/desktop_tab_page.dart b/flutter/lib/desktop/pages/desktop_tab_page.dart index 725babdd8..a117bab12 100644 --- a/flutter/lib/desktop/pages/desktop_tab_page.dart +++ b/flutter/lib/desktop/pages/desktop_tab_page.dart @@ -57,9 +57,9 @@ class _DesktopTabPageState extends State { }) ]), ); - return Obx(() => Platform.isMacOS + return Platform.isMacOS ? tabWidget - : DragToResizeArea( + : Obx(() => DragToResizeArea( resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, child: tabWidget)); } diff --git a/flutter/lib/desktop/pages/remote_tab_page.dart b/flutter/lib/desktop/pages/remote_tab_page.dart index 2bef85b60..5ea94f4a9 100644 --- a/flutter/lib/desktop/pages/remote_tab_page.dart +++ b/flutter/lib/desktop/pages/remote_tab_page.dart @@ -140,9 +140,9 @@ class _ConnectionTabPageState extends State { }), )), ); - return Obx(() => Platform.isMacOS + return Platform.isMacOS ? tabWidget - : SubWindowDragToResizeArea( + : Obx(() => SubWindowDragToResizeArea( resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, windowId: windowId(), child: tabWidget));