mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-01 00:39:34 +01:00
chore: Follow up styling
This commit is contained in:
parent
20c1dbd00a
commit
d211dd4aeb
@ -72,7 +72,8 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
ActiveFilter.messages,
|
ActiveFilter.messages,
|
||||||
}.contains(controller.activeFilter) &&
|
}.contains(controller.activeFilter) &&
|
||||||
client.storiesRooms.isNotEmpty;
|
client.storiesRooms.isNotEmpty;
|
||||||
return CustomScrollView(
|
return SafeArea(
|
||||||
|
child: CustomScrollView(
|
||||||
controller: controller.scrollController,
|
controller: controller.scrollController,
|
||||||
slivers: [
|
slivers: [
|
||||||
ChatListHeader(controller: controller),
|
ChatListHeader(controller: controller),
|
||||||
@ -100,10 +101,11 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
itemCount: roomSearchResult.chunk.length,
|
itemCount: roomSearchResult.chunk.length,
|
||||||
itemBuilder: (context, i) => _SearchItem(
|
itemBuilder: (context, i) => _SearchItem(
|
||||||
title: roomSearchResult.chunk[i].name ??
|
title: roomSearchResult.chunk[i].name ??
|
||||||
roomSearchResult.chunk[i].canonicalAlias
|
roomSearchResult.chunk[i]
|
||||||
?.localpart ??
|
.canonicalAlias?.localpart ??
|
||||||
L10n.of(context)!.group,
|
L10n.of(context)!.group,
|
||||||
avatar: roomSearchResult.chunk[i].avatarUrl,
|
avatar:
|
||||||
|
roomSearchResult.chunk[i].avatarUrl,
|
||||||
onPressed: () => showAdaptiveBottomSheet(
|
onPressed: () => showAdaptiveBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => PublicRoomBottomSheet(
|
builder: (c) => PublicRoomBottomSheet(
|
||||||
@ -146,8 +148,8 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
onPressed: () => showAdaptiveBottomSheet(
|
onPressed: () => showAdaptiveBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (c) => ProfileBottomSheet(
|
builder: (c) => ProfileBottomSheet(
|
||||||
userId:
|
userId: userSearchResult
|
||||||
userSearchResult.results[i].userId,
|
.results[i].userId,
|
||||||
outerContext: context,
|
outerContext: context,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -176,8 +178,10 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
child: ListTile(
|
child: ListTile(
|
||||||
leading: const Icon(Icons.vpn_key),
|
leading: const Icon(Icons.vpn_key),
|
||||||
title: Text(L10n.of(context)!.dehydrateTor),
|
title: Text(L10n.of(context)!.dehydrateTor),
|
||||||
subtitle: Text(L10n.of(context)!.dehydrateTorLong),
|
subtitle:
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
Text(L10n.of(context)!.dehydrateTorLong),
|
||||||
|
trailing:
|
||||||
|
const Icon(Icons.chevron_right_outlined),
|
||||||
onTap: controller.dehydrate,
|
onTap: controller.dehydrate,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -242,6 +246,7 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const dummyChatCount = 5;
|
const dummyChatCount = 5;
|
||||||
|
@ -69,6 +69,7 @@ class NewPrivateChatView extends StatelessWidget {
|
|||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
fixedSize:
|
fixedSize:
|
||||||
Size.fromWidth(qrCodeSize - (2 * _qrCodePadding)),
|
Size.fromWidth(qrCodeSize - (2 * _qrCodePadding)),
|
||||||
|
foregroundColor: Colors.black,
|
||||||
),
|
),
|
||||||
icon: Icon(Icons.adaptive.share_outlined),
|
icon: Icon(Icons.adaptive.share_outlined),
|
||||||
label: Text(L10n.of(context)!.shareYourInviteLink),
|
label: Text(L10n.of(context)!.shareYourInviteLink),
|
||||||
|
Loading…
Reference in New Issue
Block a user