Refactor SidebarCommunitiesList to be a StatelessWidget and update its usage across SpaceTreeView and SidebarWidget for improved performance and maintainability.

This commit is contained in:
Faris Armoush
2025-04-16 14:09:36 +03:00
parent afdd44e098
commit 8b441aaf46
3 changed files with 167 additions and 166 deletions

View File

@ -120,6 +120,8 @@ class _SidebarWidgetState extends State<SidebarWidget> {
visible: filteredCommunities.isNotEmpty,
replacement: const EmptySearchResultWidget(),
child: SidebarCommunitiesList(
scrollController: _scrollController,
onScrollToEnd: () {},
communities: filteredCommunities,
itemBuilder: (context, index) => _buildCommunityTile(
context,