From 75fb964a340b85a39e36152a56c93b1865f48f1e Mon Sep 17 00:00:00 2001 From: Kingtous Date: Thu, 23 Feb 2023 19:08:44 +0800 Subject: [PATCH] opt: lack of frame border in remote page --- .../desktop/pages/file_manager_tab_page.dart | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/flutter/lib/desktop/pages/file_manager_tab_page.dart b/flutter/lib/desktop/pages/file_manager_tab_page.dart index bbe2b28be..148d928d9 100644 --- a/flutter/lib/desktop/pages/file_manager_tab_page.dart +++ b/flutter/lib/desktop/pages/file_manager_tab_page.dart @@ -86,14 +86,18 @@ class _FileManagerTabPageState extends State { @override Widget build(BuildContext context) { - final tabWidget = Scaffold( - backgroundColor: Theme.of(context).cardColor, - body: DesktopTab( - controller: tabController, - onWindowCloseButton: handleWindowCloseButton, - tail: const AddButton().paddingOnly(left: 10), - labelGetter: DesktopTab.labelGetterAlias, - )); + final tabWidget = Container( + decoration: BoxDecoration( + border: Border.all(color: MyTheme.color(context).border!)), + child: Scaffold( + backgroundColor: Theme.of(context).cardColor, + body: DesktopTab( + controller: tabController, + onWindowCloseButton: handleWindowCloseButton, + tail: const AddButton().paddingOnly(left: 10), + labelGetter: DesktopTab.labelGetterAlias, + )), + ); return Platform.isMacOS ? tabWidget : SubWindowDragToResizeArea(