fix: place obx down

This commit is contained in:
Kingtous 2022-09-19 11:09:29 +08:00
parent de8596d6ee
commit 225d5a0983
2 changed files with 4 additions and 4 deletions

View File

@ -57,9 +57,9 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
}) })
]), ]),
); );
return Obx(() => Platform.isMacOS return Platform.isMacOS
? tabWidget ? tabWidget
: DragToResizeArea( : Obx(() => DragToResizeArea(
resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, child: tabWidget)); resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, child: tabWidget));
} }

View File

@ -140,9 +140,9 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
}), }),
)), )),
); );
return Obx(() => Platform.isMacOS return Platform.isMacOS
? tabWidget ? tabWidget
: SubWindowDragToResizeArea( : Obx(() => SubWindowDragToResizeArea(
resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, resizeEdgeSize: fullscreen.value ? 1.0 : 8.0,
windowId: windowId(), windowId: windowId(),
child: tabWidget)); child: tabWidget));