mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
fix: Allow key verification to scroll vertically
This commit is contained in:
parent
d90610a34c
commit
accd9b44c8
@ -25,6 +25,7 @@ class KeyVerificationDialog extends StatefulWidget {
|
|||||||
|
|
||||||
class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
||||||
void Function() originalOnUpdate;
|
void Function() originalOnUpdate;
|
||||||
|
final _scrollController = ScrollController();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -50,6 +51,7 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
|||||||
.contains(widget.request.state)) {
|
.contains(widget.request.state)) {
|
||||||
widget.request.cancel('m.user');
|
widget.request.cancel('m.user');
|
||||||
}
|
}
|
||||||
|
_scrollController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,17 +318,25 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
|||||||
subtitle: Text(L10n.of(context).verifyTitle, maxLines: 1),
|
subtitle: Text(L10n.of(context).verifyTitle, maxLines: 1),
|
||||||
title: userNameTitle,
|
title: userNameTitle,
|
||||||
);
|
);
|
||||||
final content = Column(
|
final content = Scrollbar(
|
||||||
mainAxisSize: MainAxisSize.min,
|
isAlwaysShown: true,
|
||||||
children: [
|
controller: _scrollController,
|
||||||
if (PlatformInfos.isCupertinoStyle) ...{
|
child: SingleChildScrollView(
|
||||||
SizedBox(height: 8),
|
scrollDirection: Axis.vertical,
|
||||||
Center(child: userNameTitle),
|
controller: _scrollController,
|
||||||
SizedBox(height: 12),
|
child: Column(
|
||||||
},
|
mainAxisSize: MainAxisSize.min,
|
||||||
body,
|
children: [
|
||||||
if (bottom != null) bottom,
|
if (PlatformInfos.isCupertinoStyle) ...[
|
||||||
],
|
SizedBox(height: 8),
|
||||||
|
Center(child: userNameTitle),
|
||||||
|
SizedBox(height: 12),
|
||||||
|
],
|
||||||
|
body,
|
||||||
|
if (bottom != null) bottom,
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (PlatformInfos.isCupertinoStyle) {
|
if (PlatformInfos.isCupertinoStyle) {
|
||||||
return CupertinoAlertDialog(
|
return CupertinoAlertDialog(
|
||||||
|
Loading…
Reference in New Issue
Block a user