switch peer tab does not reset scroll position
This commit is contained in:
parent
57debc6339
commit
d851fb58e0
@ -134,7 +134,7 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
Divider().paddingOnly(right: 12),
|
Divider().paddingOnly(right: 12),
|
||||||
])),
|
])),
|
||||||
SliverFillRemaining(
|
SliverFillRemaining(
|
||||||
hasScrollBody: false,
|
hasScrollBody: true,
|
||||||
child: PeerTabPage().paddingOnly(right: 12.0),
|
child: PeerTabPage().paddingOnly(right: 12.0),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@ -243,8 +243,10 @@ class _ConnectionPageState extends State<ConnectionPage>
|
|||||||
|
|
||||||
Widget buildStatus() {
|
Widget buildStatus() {
|
||||||
final em = 14.0;
|
final em = 14.0;
|
||||||
return ConstrainedBox(
|
return Container(
|
||||||
constraints: BoxConstraints.tightFor(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: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user