mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-25 08:47:56 +00:00
pass selected space
This commit is contained in:
@@ -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,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user