removed logs

This commit is contained in:
hannathkadher
2024-10-08 13:54:24 +04:00
parent 76229788b3
commit 72dfedf2b6
2 changed files with 0 additions and 24 deletions

View File

@ -4,7 +4,6 @@ import 'package:syncrow_web/pages/common/buttons/add_space_button.dart';
import 'package:syncrow_web/pages/spaces_management/bloc/space_management_bloc.dart'; import 'package:syncrow_web/pages/spaces_management/bloc/space_management_bloc.dart';
import 'package:syncrow_web/pages/spaces_management/bloc/space_management_event.dart'; import 'package:syncrow_web/pages/spaces_management/bloc/space_management_event.dart';
import 'package:syncrow_web/pages/spaces_management/bloc/space_management_state.dart'; import 'package:syncrow_web/pages/spaces_management/bloc/space_management_state.dart';
import 'package:syncrow_web/pages/spaces_management/model/community_model.dart';
import 'package:syncrow_web/pages/spaces_management/model/space_model.dart'; import 'package:syncrow_web/pages/spaces_management/model/space_model.dart';
import 'package:syncrow_web/pages/spaces_management/view/curved_line_painter.dart'; import 'package:syncrow_web/pages/spaces_management/view/curved_line_painter.dart';
import 'package:syncrow_web/pages/spaces_management/view/dialogs/create_space_dialog.dart'; import 'package:syncrow_web/pages/spaces_management/view/dialogs/create_space_dialog.dart';
@ -36,7 +35,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
super.initState(); super.initState();
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
Size screenSize = MediaQuery.of(context).size; Size screenSize = MediaQuery.of(context).size;
@ -210,7 +208,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
], ],
), ),
), ),
); );
} }

View File

@ -26,27 +26,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
@override @override
void initState() { void initState() {
super.initState(); super.initState();
_logCommunitySpaces(); // Log the structure on initialization
}
// Function to log the communitySpaces data structure for debugging
void _logCommunitySpaces() {
debugPrint('Logging communitySpaces structure:');
widget.communitySpaces.forEach((communityName, spaces) {
debugPrint('Community: $communityName');
_logSpaces(spaces, 1);
});
}
// Helper function to log the spaces and their children
void _logSpaces(List<SpaceModel> spaces, int level) {
for (SpaceModel space in spaces) {
debugPrint(
'${' ' * level}Space: ${space.name}, UUID: ${space.uuid}, Has children: ${space.children.isNotEmpty}');
if (space.children.isNotEmpty) {
_logSpaces(space.children, level + 1);
}
}
} }
void _showCreateCommunityDialog() { void _showCreateCommunityDialog() {