mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
chore: Add keys to roomlist and stories header
This commit is contained in:
parent
26f2d488e0
commit
c2d582f1f7
@ -136,6 +136,7 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
if (displayStoriesHeader)
|
if (displayStoriesHeader)
|
||||||
StoriesHeader(
|
StoriesHeader(
|
||||||
|
key: const Key('stories_header'),
|
||||||
filter: controller.searchController.text,
|
filter: controller.searchController.text,
|
||||||
),
|
),
|
||||||
const ConnectionStatusHeader(),
|
const ConnectionStatusHeader(),
|
||||||
@ -197,6 +198,7 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return ChatListItem(
|
return ChatListItem(
|
||||||
rooms[i],
|
rooms[i],
|
||||||
|
key: Key('chat_list_item_${rooms[i].id}'),
|
||||||
selected: controller.selectedRoomIds.contains(rooms[i].id),
|
selected: controller.selectedRoomIds.contains(rooms[i].id),
|
||||||
onTap: controller.selectMode == SelectMode.select
|
onTap: controller.selectMode == SelectMode.select
|
||||||
? () => controller.toggleSelection(rooms[i].id)
|
? () => controller.toggleSelection(rooms[i].id)
|
||||||
|
Loading…
Reference in New Issue
Block a user