mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 10:25:11 +00:00
style: Adjust key verification dialog
This commit is contained in:
parent
c11ab56b1f
commit
55b46f2b85
3 changed files with 8 additions and 5 deletions
|
@ -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": {}
|
||||
|
|
|
@ -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),
|
||||
],
|
||||
);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue