From 0bf63aaa331a6e527c861de2b5d030a667baa95f Mon Sep 17 00:00:00 2001 From: Kingtous Date: Wed, 28 Sep 2022 21:21:54 +0800 Subject: [PATCH] opt: desktop connection page scrollbar --- flutter/lib/desktop/pages/connection_page.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index 2e6d79b2f..627cd23e9 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -63,6 +63,7 @@ class _ConnectionPageState extends State scrollController: _scrollController, child: CustomScrollView( controller: _scrollController, + physics: NeverScrollableScrollPhysics(), slivers: [ SliverList( delegate: SliverChildListDelegate([ @@ -72,7 +73,7 @@ class _ConnectionPageState extends State ], ).marginOnly(top: 22), SizedBox(height: 12), - Divider(), + Divider().paddingOnly(right: 12), ])), SliverFillRemaining( hasScrollBody: false, @@ -97,10 +98,10 @@ class _ConnectionPageState extends State menuPadding: EdgeInsets.only(left: 12.0, right: 3.0), ), ], - ), + ).paddingOnly(right: 12.0), ) ], - ).marginSymmetric(horizontal: 12.0), + ).paddingOnly(left: 12.0), ), ), const Divider(),