mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Display selected community name
This commit is contained in:
@ -82,9 +82,7 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
children: [
|
children: [
|
||||||
SidebarWidget(
|
SidebarWidget(
|
||||||
communities: communities,
|
communities: communities,
|
||||||
onCommunitySelected: (community) {
|
onCommunitySelected: (community) {},
|
||||||
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
showCommunityStructure
|
showCommunityStructure
|
||||||
? _buildCommunityStructureArea(context, screenSize)
|
? _buildCommunityStructureArea(context, screenSize)
|
||||||
@ -133,12 +131,26 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Column(
|
||||||
'Community Structure',
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
style: TextStyle(
|
children: [
|
||||||
fontSize: 24,
|
Text(
|
||||||
fontWeight: FontWeight.bold,
|
'Community Structure',
|
||||||
),
|
style: TextStyle(
|
||||||
|
fontSize: 24,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (selectedCommunity != null) ...[
|
||||||
|
Text(
|
||||||
|
selectedCommunity!.name, // Show community name
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 16,
|
||||||
|
color: ColorsManager.blackColor, // Slightly muted color
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Use Expanded to ensure InteractiveViewer takes the available space
|
// Use Expanded to ensure InteractiveViewer takes the available space
|
||||||
|
Reference in New Issue
Block a user