mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-13 02:39:10 +08:00
Merge pull request #5812 from 21pages/desktop_single_scroll
desktop only one scrollbar
This commit is contained in:
commit
4e93ffb924
@ -146,7 +146,7 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
],
|
],
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
),
|
).paddingOnly(right: isDesktop ? 12 : 0),
|
||||||
_createPeersView(),
|
_createPeersView(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
@ -33,9 +33,6 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
/// Controller for the id input bar.
|
/// Controller for the id input bar.
|
||||||
final _idController = IDTextEditingController();
|
final _idController = IDTextEditingController();
|
||||||
|
|
||||||
/// Nested scroll controller
|
|
||||||
final _scrollController = ScrollController();
|
|
||||||
|
|
||||||
Timer? _updateTimer;
|
Timer? _updateTimer;
|
||||||
|
|
||||||
final RxBool _idInputFocused = false.obs;
|
final RxBool _idInputFocused = false.obs;
|
||||||
@ -121,14 +118,8 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: DesktopScrollWrapper(
|
child: Column(
|
||||||
scrollController: _scrollController,
|
children: [
|
||||||
child: CustomScrollView(
|
|
||||||
controller: _scrollController,
|
|
||||||
physics: DraggableNeverScrollableScrollPhysics(),
|
|
||||||
slivers: [
|
|
||||||
SliverList(
|
|
||||||
delegate: SliverChildListDelegate([
|
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Flexible(child: _buildRemoteIDTextField(context)),
|
Flexible(child: _buildRemoteIDTextField(context)),
|
||||||
@ -136,15 +127,9 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
).marginOnly(top: 22),
|
).marginOnly(top: 22),
|
||||||
SizedBox(height: 12),
|
SizedBox(height: 12),
|
||||||
Divider().paddingOnly(right: 12),
|
Divider().paddingOnly(right: 12),
|
||||||
])),
|
Expanded(child: PeerTabPage()),
|
||||||
SliverFillRemaining(
|
|
||||||
hasScrollBody: true,
|
|
||||||
child: PeerTabPage().paddingOnly(right: 12.0),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
).paddingOnly(left: 12.0),
|
).paddingOnly(left: 12.0)),
|
||||||
),
|
|
||||||
),
|
|
||||||
const Divider(height: 1),
|
const Divider(height: 1),
|
||||||
buildStatus()
|
buildStatus()
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user