mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-25 19:44:17 +01:00
fix: BuildContext in key verification dialog
This commit is contained in:
parent
0458064c44
commit
c4866c7728
@ -5,7 +5,6 @@ import 'package:fluffychat/utils/platform_infos.dart';
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
import '../avatar.dart';
|
|
||||||
import 'adaptive_flat_button.dart';
|
import 'adaptive_flat_button.dart';
|
||||||
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
||||||
import '../../utils/string_color.dart';
|
import '../../utils/string_color.dart';
|
||||||
@ -306,14 +305,7 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
|||||||
],
|
],
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
);
|
);
|
||||||
final title = PlatformInfos.isCupertinoStyle
|
final title = Text(L10n.of(context).verifyTitle);
|
||||||
? Text(L10n.of(context).verifyTitle)
|
|
||||||
: ListTile(
|
|
||||||
leading: Avatar(profile?.avatarUrl, otherName),
|
|
||||||
contentPadding: EdgeInsets.zero,
|
|
||||||
subtitle: Text(L10n.of(context).verifyTitle, maxLines: 1),
|
|
||||||
title: userNameTitle,
|
|
||||||
);
|
|
||||||
final content = Scrollbar(
|
final content = Scrollbar(
|
||||||
isAlwaysShown: true,
|
isAlwaysShown: true,
|
||||||
controller: _scrollController,
|
controller: _scrollController,
|
||||||
|
Loading…
Reference in New Issue
Block a user