opt: use const variable

This commit is contained in:
Kingtous
2022-09-19 17:10:12 +08:00
parent 21eb7bd165
commit c2f516f57f
6 changed files with 17 additions and 6 deletions

View File

@@ -143,7 +143,8 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
return Platform.isMacOS
? tabWidget
: Obx(() => SubWindowDragToResizeArea(
resizeEdgeSize: fullscreen.value ? 1.0 : 4.0,
resizeEdgeSize:
fullscreen.value ? kFullScreenEdgeSize : kWindowEdgeSize,
windowId: windowId(),
child: tabWidget));
}