mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 17:47:53 +00:00
Merge pull request #172 from SyncrowIOT/bugfix/pagination-scroll
This commit is contained in:
@ -124,10 +124,9 @@ class _SidebarWidgetState extends State<SidebarWidget> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Visibility(
|
child: Builder(
|
||||||
visible: filteredCommunities.isNotEmpty,
|
builder: (_) {
|
||||||
replacement: const EmptySearchResultWidget(),
|
return SidebarCommunitiesList(
|
||||||
child: SidebarCommunitiesList(
|
|
||||||
scrollController: _scrollController,
|
scrollController: _scrollController,
|
||||||
onScrollToEnd: () {},
|
onScrollToEnd: () {},
|
||||||
communities: filteredCommunities,
|
communities: filteredCommunities,
|
||||||
@ -144,9 +143,15 @@ class _SidebarWidgetState extends State<SidebarWidget> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _buildCommunityTile(context, filteredCommunities[index]);
|
return _buildCommunityTile(context, filteredCommunities[index]);
|
||||||
}),
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (spaceTreeState.paginationIsLoading)
|
||||||
|
Center(
|
||||||
|
child: CircularProgressIndicator(),
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user