refactor: Chat list view
This commit is contained in:
parent
fbf1cf10e2
commit
3340f93025
1 changed files with 1 additions and 2 deletions
|
|
@ -289,9 +289,8 @@ class _ChatListViewBody extends StatelessWidget {
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final totalCount = rooms.length;
|
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
itemCount: totalCount,
|
itemCount: rooms.length,
|
||||||
itemBuilder: (BuildContext context, int i) {
|
itemBuilder: (BuildContext context, int i) {
|
||||||
return ChatListItem(
|
return ChatListItem(
|
||||||
rooms[i],
|
rooms[i],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue