style: Adjust key verification dialog

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

View File

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

View File

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

View File

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