|
|
|
@ -291,14 +291,21 @@ class ChatView extends StatelessWidget {
|
|
|
|
|
AppConfig.borderRadius,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
elevation: 4,
|
|
|
|
|
shadowColor: Colors.black.withAlpha(64),
|
|
|
|
|
clipBehavior: Clip.hardEdge,
|
|
|
|
|
color: Theme.of(context).brightness ==
|
|
|
|
|
Brightness.light
|
|
|
|
|
? Colors.white
|
|
|
|
|
: Colors.black,
|
|
|
|
|
child: controller.room.isAbandonedDMRoom == true
|
|
|
|
|
color: Theme.of(context).colorScheme.background,
|
|
|
|
|
child: Material(
|
|
|
|
|
color: Theme.of(context)
|
|
|
|
|
.colorScheme
|
|
|
|
|
.primary
|
|
|
|
|
.withOpacity(0.1),
|
|
|
|
|
elevation: Theme.of(context)
|
|
|
|
|
.appBarTheme
|
|
|
|
|
.scrolledUnderElevation ??
|
|
|
|
|
0,
|
|
|
|
|
shadowColor:
|
|
|
|
|
Theme.of(context).appBarTheme.shadowColor,
|
|
|
|
|
child: controller.room.isAbandonedDMRoom ==
|
|
|
|
|
true
|
|
|
|
|
? Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
@ -308,7 +315,8 @@ class ChatView extends StatelessWidget {
|
|
|
|
|
padding: const EdgeInsets.all(
|
|
|
|
|
16,
|
|
|
|
|
),
|
|
|
|
|
foregroundColor: Theme.of(context)
|
|
|
|
|
foregroundColor:
|
|
|
|
|
Theme.of(context)
|
|
|
|
|
.colorScheme
|
|
|
|
|
.error,
|
|
|
|
|
),
|
|
|
|
@ -329,7 +337,8 @@ class ChatView extends StatelessWidget {
|
|
|
|
|
icon: const Icon(
|
|
|
|
|
Icons.forum_outlined,
|
|
|
|
|
),
|
|
|
|
|
onPressed: controller.recreateChat,
|
|
|
|
|
onPressed:
|
|
|
|
|
controller.recreateChat,
|
|
|
|
|
label: Text(
|
|
|
|
|
L10n.of(context)!.reopenChat,
|
|
|
|
|
),
|
|
|
|
@ -348,6 +357,7 @@ class ChatView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|