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);
return InkWell(
child: Icon(
Icons.sort,
Icons.sort_rounded,
size: 18,
),
onTapDown: (details) {

View File

@ -134,7 +134,7 @@ class _ConnectionPageState extends State<ConnectionPage>
Divider().paddingOnly(right: 12),
])),
SliverFillRemaining(
hasScrollBody: true,
hasScrollBody: false,
child: PeerTabPage().paddingOnly(right: 12.0),
)
],
@ -245,8 +245,6 @@ class _ConnectionPageState extends State<ConnectionPage>
final em = 14.0;
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: [