remoived debug print

This commit is contained in:
hannathkadher
2024-10-14 10:07:29 +04:00
parent 220cfdbd27
commit df3b3131be
3 changed files with 3 additions and 21 deletions

View File

@ -177,11 +177,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
bool hasChildren = community.spaces.isNotEmpty;
bool isSelectedCommunity = _selectedCommunityUuid ==
community.uuid; // Check if this community is selected
debugPrint('Building CommunityTile for ${community.name} with UUID: ${community.uuid}');
debugPrint('Currently selected community UUID: $_selectedCommunityUuid');
debugPrint('Is selected: $isSelectedCommunity');
return CommunityTile(
title: community.name,
isSelected: isSelectedCommunity,
@ -189,10 +184,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
onItemSelected: () {
setState(() {
_selectedSpaceUuid = community.uuid; // Update the selected community
debugPrint(
'Selected community: ${community.name}, UUID: ${community.uuid}');
debugPrint(
'Updated selected community UUID: $_selectedCommunityUuid');
});
if (widget.onCommunitySelected != null) {
@ -200,8 +191,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
}
},
onExpansionChanged: (String title, bool expanded) {
debugPrint(
'CommunityTile onExpansionChanged called for $title, expanded: $expanded');
_handleExpansionChange(community.uuid, expanded);
},
children: hasChildren
@ -213,15 +202,10 @@ class _SidebarWidgetState extends State<SidebarWidget> {
Widget _buildSpaceTile(SpaceModel space) {
bool isSelectedSpace =
_isSpaceOrChildSelected(space); // Check if space should be expanded
debugPrint(
'Building SpaceTile for ${space.name}, hasChildren: ${space.children.isNotEmpty}');
return SpaceTile(
title: space.name,
initiallyExpanded: isSelectedSpace,
onExpansionChanged: (bool expanded) {
debugPrint(
'SpaceTile onExpansionChanged called for ${space.name}, expanded: $expanded');
_handleExpansionChange(space.uuid, expanded);
},
children: space.children.isNotEmpty