mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Removed community view
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user