mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-13 17:02:10 +00:00
remoived debug print
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user