chore: Adjust chat details button design

pull/924/merge
Christian Kußowski 3 weeks ago
parent 69bbfa5389
commit 32c61909cc
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -208,7 +208,6 @@ 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,
@ -217,23 +216,14 @@ class ChatDetailsView extends StatelessWidget {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
) trailing: room
else .canChangeStateEvent(EventTypes.RoomTopic)
Padding( ? IconButton(
padding: const EdgeInsets.all(16.0),
child: TextButton.icon(
onPressed: controller.setTopicAction, onPressed: controller.setTopicAction,
label: Text(L10n.of(context).setChatDescription), tooltip: L10n.of(context).setChatDescription,
icon: const Icon(Icons.edit_outlined), icon: const Icon(Icons.edit_outlined),
style: TextButton.styleFrom( )
iconColor: : null,
theme.colorScheme.onSecondaryContainer,
backgroundColor:
theme.colorScheme.secondaryContainer,
foregroundColor:
theme.colorScheme.onSecondaryContainer,
),
),
), ),
Padding( Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(

Loading…
Cancel
Save