chore: Follow up input bar design

pull/953/head
Krille 1 year ago
parent 6d4ee4ad6f
commit 7e0dcc3058
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -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(
Icons.archive_outlined,
),
onPressed: controller.leaveChat,
label: Text(
L10n.of(context)!.leave,
), ),
foregroundColor: Theme.of(context)
.colorScheme
.error,
), ),
TextButton.icon( icon: const Icon(
style: TextButton.styleFrom( Icons.archive_outlined,
padding: const EdgeInsets.all( ),
16, onPressed: controller.leaveChat,
), label: Text(
), L10n.of(context)!.leave,
icon: const Icon( ),
Icons.forum_outlined, ),
), TextButton.icon(
onPressed: style: TextButton.styleFrom(
controller.recreateChat, padding: const EdgeInsets.all(
label: Text( 16,
L10n.of(context)!.reopenChat,
), ),
), ),
], icon: const Icon(
) Icons.forum_outlined,
: Column( ),
mainAxisSize: MainAxisSize.min, onPressed: controller.recreateChat,
children: [ label: Text(
const ConnectionStatusHeader(), L10n.of(context)!.reopenChat,
ReactionsPicker(controller), ),
ReplyDisplay(controller), ),
ChatInputRow(controller), ],
ChatEmojiPicker(controller), )
], : Column(
), mainAxisSize: MainAxisSize.min,
), children: [
const ConnectionStatusHeader(),
ReactionsPicker(controller),
ReplyDisplay(controller),
ChatInputRow(controller),
ChatEmojiPicker(controller),
],
),
), ),
), ),
], ],

Loading…
Cancel
Save