revert back to hasScrollBody=false, though true can remember scroll

position, but it causes much more problems
This commit is contained in:
rustdesk 2023-06-23 13:26:45 +08:00
parent fea9cfba7f
commit 977ac2a3b2
2 changed files with 2 additions and 4 deletions

View File

@ -388,7 +388,7 @@ class _PeerSortDropdownState extends State<PeerSortDropdown> {
var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0); var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);
return InkWell( return InkWell(
child: Icon( child: Icon(
Icons.sort, Icons.sort_rounded,
size: 18, size: 18,
), ),
onTapDown: (details) { onTapDown: (details) {

View File

@ -134,7 +134,7 @@ class _ConnectionPageState extends State<ConnectionPage>
Divider().paddingOnly(right: 12), Divider().paddingOnly(right: 12),
])), ])),
SliverFillRemaining( SliverFillRemaining(
hasScrollBody: true, hasScrollBody: false,
child: PeerTabPage().paddingOnly(right: 12.0), child: PeerTabPage().paddingOnly(right: 12.0),
) )
], ],
@ -245,8 +245,6 @@ class _ConnectionPageState extends State<ConnectionPage>
final em = 14.0; final em = 14.0;
return Container( return Container(
height: 3 * em, height: 3 * em,
color: Theme.of(context)
.scaffoldBackgroundColor, // has to set this if using hasScrollBody in above silvers
child: Obx(() => Row( child: Obx(() => Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [