Merge pull request #1632 from fufesou/flutter_desktop_fix_fullscreen

flutter_desktop: fix fullscreen
This commit is contained in:
RustDesk 2022-09-27 20:22:12 +08:00 committed by GitHub
commit e166180a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
border: Border.all(color: MyTheme.color(context).border!)),
child: Scaffold(
backgroundColor: Theme.of(context).backgroundColor,
body: DesktopTab(
body: Obx(() => DesktopTab(
controller: tabController,
showTabBar: fullscreen.isFalse,
onWindowCloseButton: handleWindowCloseButton,
@ -139,7 +139,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
);
}
}),
)),
))),
);
return Platform.isMacOS
? tabWidget