chore: Follow up styling

This commit is contained in:
Krille 2023-03-20 07:56:49 +01:00
parent 20c1dbd00a
commit d211dd4aeb
No known key found for this signature in database
2 changed files with 166 additions and 160 deletions

View File

@ -72,7 +72,8 @@ class ChatListViewBody extends StatelessWidget {
ActiveFilter.messages,
}.contains(controller.activeFilter) &&
client.storiesRooms.isNotEmpty;
return CustomScrollView(
return SafeArea(
child: CustomScrollView(
controller: controller.scrollController,
slivers: [
ChatListHeader(controller: controller),
@ -100,10 +101,11 @@ class ChatListViewBody extends StatelessWidget {
itemCount: roomSearchResult.chunk.length,
itemBuilder: (context, i) => _SearchItem(
title: roomSearchResult.chunk[i].name ??
roomSearchResult.chunk[i].canonicalAlias
?.localpart ??
roomSearchResult.chunk[i]
.canonicalAlias?.localpart ??
L10n.of(context)!.group,
avatar: roomSearchResult.chunk[i].avatarUrl,
avatar:
roomSearchResult.chunk[i].avatarUrl,
onPressed: () => showAdaptiveBottomSheet(
context: context,
builder: (c) => PublicRoomBottomSheet(
@ -146,8 +148,8 @@ class ChatListViewBody extends StatelessWidget {
onPressed: () => showAdaptiveBottomSheet(
context: context,
builder: (c) => ProfileBottomSheet(
userId:
userSearchResult.results[i].userId,
userId: userSearchResult
.results[i].userId,
outerContext: context,
),
),
@ -176,8 +178,10 @@ class ChatListViewBody extends StatelessWidget {
child: ListTile(
leading: const Icon(Icons.vpn_key),
title: Text(L10n.of(context)!.dehydrateTor),
subtitle: Text(L10n.of(context)!.dehydrateTorLong),
trailing: const Icon(Icons.chevron_right_outlined),
subtitle:
Text(L10n.of(context)!.dehydrateTorLong),
trailing:
const Icon(Icons.chevron_right_outlined),
onTap: controller.dehydrate,
),
),
@ -242,6 +246,7 @@ class ChatListViewBody extends StatelessWidget {
),
),
],
),
);
}
const dummyChatCount = 5;

View File

@ -69,6 +69,7 @@ class NewPrivateChatView extends StatelessWidget {
style: TextButton.styleFrom(
fixedSize:
Size.fromWidth(qrCodeSize - (2 * _qrCodePadding)),
foregroundColor: Colors.black,
),
icon: Icon(Icons.adaptive.share_outlined),
label: Text(L10n.of(context)!.shareYourInviteLink),