mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Added pagination and search logic in space tree
This commit is contained in:
@ -34,9 +34,8 @@ class CommunityDropdown extends StatelessWidget {
|
||||
const SizedBox(height: 8),
|
||||
BlocBuilder<SpaceTreeBloc, SpaceTreeState>(
|
||||
builder: (context, state) {
|
||||
List<CommunityModel> communities = state.isSearching
|
||||
? state.filteredCommunity
|
||||
: state.communityList;
|
||||
List<CommunityModel> communities =
|
||||
state.searchQuery.isNotEmpty ? state.filteredCommunity : state.communityList;
|
||||
|
||||
return SizedBox(
|
||||
child: DropdownButtonFormField<String>(
|
||||
|
Reference in New Issue
Block a user