From d851fb58e0018f191af1faddc26c1604ddbd148d Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 23 Jun 2023 12:32:18 +0800 Subject: [PATCH] switch peer tab does not reset scroll position --- flutter/lib/desktop/pages/connection_page.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index 096dd069e..91d6b6032 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -134,7 +134,7 @@ class _ConnectionPageState extends State Divider().paddingOnly(right: 12), ])), SliverFillRemaining( - hasScrollBody: false, + hasScrollBody: true, child: PeerTabPage().paddingOnly(right: 12.0), ) ], @@ -243,8 +243,10 @@ class _ConnectionPageState extends State Widget buildStatus() { final em = 14.0; - return ConstrainedBox( - constraints: BoxConstraints.tightFor(height: 3 * em), + return Container( + height: 3 * em, + color: Theme.of(context) + .scaffoldBackgroundColor, // has to set this if using hasScrollBody in above silvers child: Obx(() => Row( crossAxisAlignment: CrossAxisAlignment.center, children: [