opt: more configurable scroll logic & edge size

This commit is contained in:
Kingtous
2022-09-19 16:06:03 +08:00
parent bf1314f91f
commit 21eb7bd165
8 changed files with 79 additions and 47 deletions

View File

@@ -60,7 +60,7 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
return Platform.isMacOS
? tabWidget
: Obx(() => DragToResizeArea(
resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, child: tabWidget));
resizeEdgeSize: fullscreen.value ? 1.0 : 4.0, child: tabWidget));
}
void onAddSetting() {

View File

@@ -81,6 +81,7 @@ class _FileManagerTabPageState extends State<FileManagerTabPage> {
return Platform.isMacOS
? tabWidget
: SubWindowDragToResizeArea(
resizeEdgeSize: 4.0,
windowId: windowId(),
child: tabWidget,
);

View File

@@ -92,6 +92,7 @@ class _PortForwardTabPageState extends State<PortForwardTabPage> {
return Platform.isMacOS
? tabWidget
: SubWindowDragToResizeArea(
resizeEdgeSize: 4.0,
windowId: windowId(),
child: tabWidget,
);

View File

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