From afdd44e098b28ec148d6daf5a8b15fa91a653149 Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Wed, 16 Apr 2025 13:18:52 +0300 Subject: [PATCH] removed comments from `SpaceTreeView`. --- .../space_tree/view/space_tree_view.dart | 62 ------------------- 1 file changed, 62 deletions(-) diff --git a/lib/pages/space_tree/view/space_tree_view.dart b/lib/pages/space_tree/view/space_tree_view.dart index 5b70da06..5b6d5593 100644 --- a/lib/pages/space_tree/view/space_tree_view.dart +++ b/lib/pages/space_tree/view/space_tree_view.dart @@ -191,68 +191,6 @@ class _SpaceTreeViewState extends State { ), ), if (state.paginationIsLoading) const CircularProgressIndicator(), - // Expanded( - // child: Padding( - // padding: const EdgeInsets.all(8.0), - // child: list.isEmpty - // ? Center( - // child: Text( - // 'No results found', - // style: Theme.of(context).textTheme.bodySmall!.copyWith( - // color: ColorsManager.lightGrayColor, // Gray when not selected - // fontWeight: FontWeight.w400, - // ), - // ), - // ) - // : ListView( - // shrinkWrap: true, - // children: list - // .map( - // (community) => CustomExpansionTileSpaceTree( - // title: community.name, - // isSelected: - // state.selectedCommunities.contains(community.uuid), - // isSoldCheck: - // state.selectedCommunities.contains(community.uuid), - // onExpansionChanged: () { - // context - // .read() - // .add(OnCommunityExpanded(community.uuid)); - // }, - // isExpanded: - // state.expandedCommunities.contains(community.uuid), - // onItemSelected: () { - // context.read().add( - // OnCommunitySelected(community.uuid, community.spaces)); - - // onSelect(); - // }, - // children: community.spaces.map((space) { - // return CustomExpansionTileSpaceTree( - // title: space.name, - // isExpanded: state.expandedSpaces.contains(space.uuid), - // onItemSelected: () { - // context.read().add(OnSpaceSelected( - // community.uuid, space.uuid ?? '', space.children)); - // onSelect(); - // }, - // onExpansionChanged: () { - // context.read().add( - // OnSpaceExpanded(community.uuid, space.uuid ?? '')); - // }, - // isSelected: state.selectedSpaces.contains(space.uuid) || - // state.soldCheck.contains(space.uuid), - // isSoldCheck: state.soldCheck.contains(space.uuid), - // children: _buildNestedSpaces( - // context, state, space, community.uuid), - // ); - // }).toList(), - // ), - // ) - // .toList(), - // ), - // ), - // ), ], ), );