Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

replace desktop outer scroll view with Column, so that there will be only one scrollbar

21pages23680ccb1439
diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart
index dccf83c7b..8f02a5c77 100644
--- a/flutter/lib/common/widgets/peer_tab_page.dart
+++ b/flutter/lib/common/widgets/peer_tab_page.dart
@@ -146,7 +146,7 @@ class _PeerTabPageState extends State<PeerTabPage>
],
)),
),
- ),
+ ).paddingOnly(right: isDesktop ? 12 : 0),
_createPeersView(),
],
);
diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart
index 5990d11bb..9cfa1defc 100644
--- a/flutter/lib/desktop/pages/connection_page.dart
+++ b/flutter/lib/desktop/pages/connection_page.dart
@@ -33,9 +33,6 @@ class _ConnectionPageState extends State<ConnectionPage>
/// Controller for the id input bar.
final _idController = IDTextEditingController();
- /// Nested scroll controller
- final _scrollController = ScrollController();
-
Timer? _updateTimer;
final RxBool _idInputFocused = false.obs;
@@ -121,30 +118,18 @@ class _ConnectionPageState extends State<ConnectionPage>
return Column(
children: [
Expanded(
- child: DesktopScrollWrapper(
- scrollController: _scrollController,
- child: CustomScrollView(
- controller: _scrollController,
- physics: DraggableNeverScrollableScrollPhysics(),
- slivers: [
- SliverList(
- delegate: SliverChildListDelegate([
- Row(
- children: [
- Flexible(child: _buildRemoteIDTextField(context)),
- ],
- ).marginOnly(top: 22),
- SizedBox(height: 12),
- Divider().paddingOnly(right: 12),
- ])),
- SliverFillRemaining(
- hasScrollBody: true,
- child: PeerTabPage().paddingOnly(right: 12.0),
- )
+ child: Column(
+ children: [
+ Row(
+ children: [
+ Flexible(child: _buildRemoteIDTextField(context)),
],
- ).paddingOnly(left: 12.0),
- ),
- ),
+ ).marginOnly(top: 22),
+ SizedBox(height: 12),
+ Divider().paddingOnly(right: 12),
+ Expanded(child: PeerTabPage()),
+ ],
+ ).paddingOnly(left: 12.0)),
const Divider(height: 1),
buildStatus()
],