fix window border width whenn fullscreen

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-11-16 19:49:52 +08:00
parent 9e229211a1
commit c802b1e95d
3 changed files with 13 additions and 7 deletions

View File

@@ -116,12 +116,14 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
@override
Widget build(BuildContext context) {
final tabWidget = Container(
decoration: BoxDecoration(
final tabWidget = Obx(
() => Container(
decoration: BoxDecoration(
border: Border.all(
color: MyTheme.color(context).border!,
width: kWindowBorderWidth)),
child: Scaffold(
width: stateGlobal.windowBorderWidth.value),
),
child: Scaffold(
backgroundColor: Theme.of(context).backgroundColor,
body: DesktopTab(
controller: tabController,
@@ -182,7 +184,9 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
);
}
}),
)),
),
),
),
);
return Platform.isMacOS
? tabWidget