added validation for community name

This commit is contained in:
hannathkadher
2024-11-29 17:22:00 +04:00
parent a3c6421b0d
commit 3c543b2e0f
5 changed files with 73 additions and 61 deletions

View File

@ -49,22 +49,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
}
}
void _showCreateCommunityDialog(BuildContext parentContext) {
showDialog(
context: parentContext,
builder: (context) => CreateCommunityDialog(
onCreateCommunity: (String communityName, String description) {
parentContext.read<SpaceManagementBloc>().add(
CreateCommunityEvent(
name: communityName,
description: description,
),
);
},
),
);
}
// Function to filter communities based on the search query
List<CommunityModel> _filterCommunities() {
if (_searchQuery.isEmpty) {