mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Display selected community name
This commit is contained in:
@ -82,9 +82,7 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
children: [
|
||||
SidebarWidget(
|
||||
communities: communities,
|
||||
onCommunitySelected: (community) {
|
||||
|
||||
},
|
||||
onCommunitySelected: (community) {},
|
||||
),
|
||||
showCommunityStructure
|
||||
? _buildCommunityStructureArea(context, screenSize)
|
||||
@ -133,12 +131,26 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Text(
|
||||
'Community Structure',
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'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
|
||||
|
Reference in New Issue
Block a user