Compare commits

..

5 Commits

2 changed files with 12 additions and 5 deletions

View File

@ -526,6 +526,8 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
isNameFieldInvalid = true;
});
return;
} else if (isNameFieldExist) {
return;
} else {
String newName = enteredName.isNotEmpty ? enteredName : (widget.name ?? '');
if (newName.isNotEmpty) {

View File

@ -124,10 +124,9 @@ class _SidebarWidgetState extends State<SidebarWidget> {
),
const SizedBox(height: 16),
Expanded(
child: Visibility(
visible: filteredCommunities.isNotEmpty,
replacement: const EmptySearchResultWidget(),
child: SidebarCommunitiesList(
child: Builder(
builder: (_) {
return SidebarCommunitiesList(
scrollController: _scrollController,
onScrollToEnd: () {},
communities: filteredCommunities,
@ -144,9 +143,15 @@ class _SidebarWidgetState extends State<SidebarWidget> {
}
}
return _buildCommunityTile(context, filteredCommunities[index]);
}),
},
);
},
),
),
if (spaceTreeState.paginationIsLoading)
Center(
child: CircularProgressIndicator(),
)
],
),
);