conditionally show room avatar in header

This commit is contained in:
Henry Hiles 2025-11-14 17:27:43 -05:00
commit f0a397f576
No known key found for this signature in database
7 changed files with 110 additions and 95 deletions

View file

@ -61,22 +61,15 @@ class Sidebar extends HookConsumerWidget {
return Scaffold(
backgroundColor: Colors.transparent,
appBar: AppBar(
title: Row(
children: [
AvatarOrHash(
space.avatar,
fallback: space.icon,
space.title,
headers: space.client.headers,
),
SizedBox(width: 12),
Expanded(
child: Text(
space.title,
overflow: TextOverflow.ellipsis,
),
),
],
leading: AvatarOrHash(
space.avatar,
fallback: space.icon,
space.title,
headers: space.client.headers,
),
title: Text(
space.title,
overflow: TextOverflow.ellipsis,
),
backgroundColor: Colors.transparent,
),