chore: Adjust chat details button design
This commit is contained in:
parent
69bbfa5389
commit
32c61909cc
1 changed files with 15 additions and 25 deletions
|
|
@ -208,33 +208,23 @@ class ChatDetailsView extends StatelessWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Divider(color: theme.dividerColor),
|
Divider(color: theme.dividerColor),
|
||||||
if (!room.canChangeStateEvent(EventTypes.RoomTopic))
|
ListTile(
|
||||||
ListTile(
|
title: Text(
|
||||||
title: Text(
|
L10n.of(context).chatDescription,
|
||||||
L10n.of(context).chatDescription,
|
style: TextStyle(
|
||||||
style: TextStyle(
|
color: theme.colorScheme.secondary,
|
||||||
color: theme.colorScheme.secondary,
|
fontWeight: FontWeight.bold,
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
else
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.all(16.0),
|
|
||||||
child: TextButton.icon(
|
|
||||||
onPressed: controller.setTopicAction,
|
|
||||||
label: Text(L10n.of(context).setChatDescription),
|
|
||||||
icon: const Icon(Icons.edit_outlined),
|
|
||||||
style: TextButton.styleFrom(
|
|
||||||
iconColor:
|
|
||||||
theme.colorScheme.onSecondaryContainer,
|
|
||||||
backgroundColor:
|
|
||||||
theme.colorScheme.secondaryContainer,
|
|
||||||
foregroundColor:
|
|
||||||
theme.colorScheme.onSecondaryContainer,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
trailing: room
|
||||||
|
.canChangeStateEvent(EventTypes.RoomTopic)
|
||||||
|
? IconButton(
|
||||||
|
onPressed: controller.setTopicAction,
|
||||||
|
tooltip: L10n.of(context).setChatDescription,
|
||||||
|
icon: const Icon(Icons.edit_outlined),
|
||||||
|
)
|
||||||
|
: null,
|
||||||
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 16.0,
|
horizontal: 16.0,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue