chore: Move encryption button to input row

This commit is contained in:
Christian Kußowski 2025-09-25 15:04:17 +02:00
commit 547f34f2a8
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 29 additions and 13 deletions

View file

@ -5,6 +5,7 @@ import 'package:matrix/matrix.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pages/chat/encryption_button.dart';
import 'package:fluffychat/utils/other_party_can_receive.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:fluffychat/widgets/avatar.dart';
@ -227,7 +228,6 @@ class ChatInputRow extends StatelessWidget {
),
Container(
height: height,
width: height,
alignment: Alignment.center,
child: IconButton(
tooltip: L10n.of(context).emojis,
@ -256,6 +256,11 @@ class ChatInputRow extends StatelessWidget {
onPressed: controller.emojiPickerAction,
),
),
Container(
height: height,
alignment: Alignment.center,
child: EncryptionButton(controller.room),
),
if (Matrix.of(context).isMultiAccount &&
Matrix.of(context).hasComplexBundles &&
Matrix.of(context).currentBundle!.length > 1)