design: Background color follow up for input bar
This commit is contained in:
parent
22b467de21
commit
150da0f0aa
1 changed files with 60 additions and 50 deletions
|
|
@ -291,61 +291,71 @@ class ChatView extends StatelessWidget {
|
||||||
AppConfig.borderRadius,
|
AppConfig.borderRadius,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
elevation: 4,
|
|
||||||
shadowColor: Colors.black.withAlpha(64),
|
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
color: Theme.of(context).brightness ==
|
color: Theme.of(context).colorScheme.background,
|
||||||
Brightness.light
|
child: Material(
|
||||||
? Colors.white
|
color: Theme.of(context)
|
||||||
: Colors.black,
|
.colorScheme
|
||||||
child: controller.room.isAbandonedDMRoom == true
|
.primary
|
||||||
? Row(
|
.withOpacity(0.1),
|
||||||
mainAxisAlignment:
|
elevation: Theme.of(context)
|
||||||
MainAxisAlignment.spaceEvenly,
|
.appBarTheme
|
||||||
children: [
|
.scrolledUnderElevation ??
|
||||||
TextButton.icon(
|
0,
|
||||||
style: TextButton.styleFrom(
|
shadowColor:
|
||||||
padding: const EdgeInsets.all(
|
Theme.of(context).appBarTheme.shadowColor,
|
||||||
16,
|
child: controller.room.isAbandonedDMRoom ==
|
||||||
|
true
|
||||||
|
? Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceEvenly,
|
||||||
|
children: [
|
||||||
|
TextButton.icon(
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
padding: const EdgeInsets.all(
|
||||||
|
16,
|
||||||
|
),
|
||||||
|
foregroundColor:
|
||||||
|
Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.error,
|
||||||
),
|
),
|
||||||
foregroundColor: Theme.of(context)
|
icon: const Icon(
|
||||||
.colorScheme
|
Icons.archive_outlined,
|
||||||
.error,
|
),
|
||||||
),
|
onPressed: controller.leaveChat,
|
||||||
icon: const Icon(
|
label: Text(
|
||||||
Icons.archive_outlined,
|
L10n.of(context)!.leave,
|
||||||
),
|
|
||||||
onPressed: controller.leaveChat,
|
|
||||||
label: Text(
|
|
||||||
L10n.of(context)!.leave,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TextButton.icon(
|
|
||||||
style: TextButton.styleFrom(
|
|
||||||
padding: const EdgeInsets.all(
|
|
||||||
16,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
icon: const Icon(
|
TextButton.icon(
|
||||||
Icons.forum_outlined,
|
style: TextButton.styleFrom(
|
||||||
|
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(
|
)
|
||||||
L10n.of(context)!.reopenChat,
|
: Column(
|
||||||
),
|
mainAxisSize: MainAxisSize.min,
|
||||||
),
|
children: [
|
||||||
],
|
const ConnectionStatusHeader(),
|
||||||
)
|
ReactionsPicker(controller),
|
||||||
: Column(
|
ReplyDisplay(controller),
|
||||||
mainAxisSize: MainAxisSize.min,
|
ChatInputRow(controller),
|
||||||
children: [
|
ChatEmojiPicker(controller),
|
||||||
const ConnectionStatusHeader(),
|
],
|
||||||
ReactionsPicker(controller),
|
),
|
||||||
ReplyDisplay(controller),
|
),
|
||||||
ChatInputRow(controller),
|
|
||||||
ChatEmojiPicker(controller),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue