pass selected space

This commit is contained in:
hannathkadher
2024-11-19 18:16:53 +04:00
parent a464788e88
commit 8a2efb2694
4 changed files with 29 additions and 8 deletions
@@ -14,11 +14,14 @@ import 'package:syncrow_web/utils/color_manager.dart';
class CommunityStructureArea extends StatefulWidget {
final CommunityModel? selectedCommunity;
final SpaceModel? selectedSpace;
final List<SpaceModel> spaces;
final List<Connection> connections;
CommunityStructureArea({
this.selectedCommunity,
this.selectedSpace,
required this.spaces,
required this.connections,
});
@@ -161,7 +164,7 @@ class _CommunityStructureAreaState extends State<CommunityStructureArea> {
),
if (widget.selectedCommunity != null)
Text(
widget.selectedCommunity!.name,
widget.selectedCommunity?.name ?? '',
style: const TextStyle(fontSize: 16, color: ColorsManager.blackColor),
),
],
@@ -350,5 +353,4 @@ class _CommunityStructureAreaState extends State<CommunityStructureArea> {
communityUuid: communityUuid,
));
}
}