mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
removed logs
This commit is contained in:
@ -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_event.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/view/curved_line_painter.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();
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Size screenSize = MediaQuery.of(context).size;
|
||||
@ -210,7 +208,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -26,27 +26,6 @@ class _SidebarWidgetState extends State<SidebarWidget> {
|
||||
@override
|
||||
void 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() {
|
||||
|
Reference in New Issue
Block a user