flutter_desktop: fix canvas size in normal and fullscreen

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-10-04 21:19:31 +08:00
parent 589d366327
commit 126d92bf67
4 changed files with 26 additions and 13 deletions

View File

@@ -27,10 +27,12 @@ class RemotePage extends StatefulWidget {
Key? key,
required this.id,
required this.tabBarHeight,
required this.windowBorderWidth,
}) : super(key: key);
final String id;
final double tabBarHeight;
final double windowBorderWidth;
@override
State<RemotePage> createState() => _RemotePageState();
@@ -54,6 +56,7 @@ class _RemotePageState extends State<RemotePage>
void _updateTabBarHeight() {
_ffi.canvasModel.tabBarHeight = widget.tabBarHeight;
_ffi.canvasModel.windowBorderWidth = widget.windowBorderWidth;
}
void _initStates(String id) {