chore: Follow up input bar design

This commit is contained in:
Krille 2024-03-25 09:22:34 +01:00
commit 7e0dcc3058
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -296,68 +296,59 @@ class ChatView extends StatelessWidget {
Brightness.light Brightness.light
? Colors.white ? Colors.white
: Colors.black, : Colors.black,
child: Material( elevation: 4.0,
color: Theme.of(context) shadowColor: Theme.of(context)
.colorScheme .colorScheme
.primary .onBackground
.withOpacity(0.1), .withOpacity(0.33),
elevation: 4.0, child: controller.room.isAbandonedDMRoom == true
shadowColor: Theme.of(context) ? Row(
.colorScheme mainAxisAlignment:
.onBackground MainAxisAlignment.spaceEvenly,
.withOpacity(0.33), children: [
child: controller.room.isAbandonedDMRoom == TextButton.icon(
true style: TextButton.styleFrom(
? Row( padding: const EdgeInsets.all(
mainAxisAlignment: 16,
MainAxisAlignment.spaceEvenly,
children: [
TextButton.icon(
style: TextButton.styleFrom(
padding: const EdgeInsets.all(
16,
),
foregroundColor:
Theme.of(context)
.colorScheme
.error,
), ),
icon: const Icon( foregroundColor: Theme.of(context)
Icons.archive_outlined, .colorScheme
), .error,
onPressed: controller.leaveChat, ),
label: Text( icon: const Icon(
L10n.of(context)!.leave, Icons.archive_outlined,
),
onPressed: controller.leaveChat,
label: Text(
L10n.of(context)!.leave,
),
),
TextButton.icon(
style: TextButton.styleFrom(
padding: const EdgeInsets.all(
16,
), ),
), ),
TextButton.icon( icon: const Icon(
style: TextButton.styleFrom( Icons.forum_outlined,
padding: const EdgeInsets.all(
16,
),
),
icon: const Icon(
Icons.forum_outlined,
),
onPressed:
controller.recreateChat,
label: Text(
L10n.of(context)!.reopenChat,
),
), ),
], onPressed: controller.recreateChat,
) label: Text(
: Column( L10n.of(context)!.reopenChat,
mainAxisSize: MainAxisSize.min, ),
children: [ ),
const ConnectionStatusHeader(), ],
ReactionsPicker(controller), )
ReplyDisplay(controller), : Column(
ChatInputRow(controller), mainAxisSize: MainAxisSize.min,
ChatEmojiPicker(controller), children: [
], const ConnectionStatusHeader(),
), ReactionsPicker(controller),
), ReplyDisplay(controller),
ChatInputRow(controller),
ChatEmojiPicker(controller),
],
),
), ),
), ),
], ],