Removed community view

This commit is contained in:
hannathkadher
2024-10-11 10:46:30 +04:00
parent 29a1470428
commit cd957ed1c7
4 changed files with 12 additions and 149 deletions

View File

@ -6,7 +6,6 @@ import 'package:syncrow_web/pages/spaces_management/bloc/space_management_event.
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/community_list_view.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/widgets/gradient_canvas_border_widget.dart';
@ -30,7 +29,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
List<Connection> connections = [];
// Track whether to show the community list view or community structure
bool showCommunityStructure = false;
// Selected community
CommunityModel? selectedCommunity;
@ -84,19 +82,13 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
children: [
SidebarWidget(
communities: communities,
onCommunitySelected: (community) {},
onCommunitySelected: (community) {
setState(() {
selectedCommunity = community; // Set the selected community
});
},
),
showCommunityStructure
? _buildCommunityStructureArea(context, screenSize)
: CommunityListViewWidget(
communities: communities,
onCommunitySelected: (community) {
setState(() {
selectedCommunity = community;
showCommunityStructure = true;
});
},
),
_buildCommunityStructureArea(context, screenSize)
],
),
const GradientCanvasBorderWidget()