style: Adjust key verification dialog

This commit is contained in:
Christian Pauly 2023-02-22 15:21:38 +01:00
parent c11ab56b1f
commit 55b46f2b85
3 changed files with 8 additions and 5 deletions

View file

@ -537,12 +537,12 @@
},
"description": "State that {command} is not a valid /command."
},
"compareEmojiMatch": "Compare and make sure the following emoji match those of the other device:",
"compareEmojiMatch": "Please compare the emojis",
"@compareEmojiMatch": {
"type": "text",
"placeholders": {}
},
"compareNumbersMatch": "Compare and make sure the following numbers match those of the other device:",
"compareNumbersMatch": "Please compare the numbers",
"@compareNumbersMatch": {
"type": "text",
"placeholders": {}

View file

@ -221,7 +221,7 @@ class KeyVerificationPageState extends State<KeyVerificationDialog> {
if (widget.request.sasTypes.contains('emoji')) {
title = Text(
L10n.of(context)!.compareEmojiMatch,
maxLines: 2,
maxLines: 1,
style: const TextStyle(fontSize: 16),
);
compareWidget = TextSpan(
@ -374,7 +374,10 @@ class _Emoji extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Text(emoji.emoji, style: const TextStyle(fontSize: 50)),
Text(getLocalizedName()),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 4.0),
child: Text(getLocalizedName()),
),
const SizedBox(height: 10, width: 5),
],
);

View file

@ -8,7 +8,7 @@ Future<T?> showAdaptiveBottomSheet<T>({
required BuildContext context,
required Widget Function(BuildContext) builder,
bool isDismissible = true,
bool isScrollControlled = true,
bool isScrollControlled = false,
}) =>
showModalBottomSheet(
context: context,