mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
refactor: Remove scrollbars
They are now added automatically in Flutter 2.2
This commit is contained in:
parent
462baef9b2
commit
4e026c1f20
@ -37,7 +37,6 @@ 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() {
|
||||||
@ -63,7 +62,6 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,24 +339,19 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
final title = Text(L10n.of(context).verifyTitle);
|
final title = Text(L10n.of(context).verifyTitle);
|
||||||
final content = Scrollbar(
|
final content = SingleChildScrollView(
|
||||||
isAlwaysShown: true,
|
scrollDirection: Axis.vertical,
|
||||||
controller: _scrollController,
|
child: Column(
|
||||||
child: SingleChildScrollView(
|
mainAxisSize: MainAxisSize.min,
|
||||||
scrollDirection: Axis.vertical,
|
children: [
|
||||||
controller: _scrollController,
|
if (PlatformInfos.isCupertinoStyle) ...[
|
||||||
child: Column(
|
SizedBox(height: 8),
|
||||||
mainAxisSize: MainAxisSize.min,
|
Center(child: userNameTitle),
|
||||||
children: [
|
SizedBox(height: 12),
|
||||||
if (PlatformInfos.isCupertinoStyle) ...[
|
|
||||||
SizedBox(height: 8),
|
|
||||||
Center(child: userNameTitle),
|
|
||||||
SizedBox(height: 12),
|
|
||||||
],
|
|
||||||
body,
|
|
||||||
if (bottom != null) bottom,
|
|
||||||
],
|
],
|
||||||
),
|
body,
|
||||||
|
if (bottom != null) bottom,
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (PlatformInfos.isCupertinoStyle) {
|
if (PlatformInfos.isCupertinoStyle) {
|
||||||
|
Loading…
Reference in New Issue
Block a user