Display selected community name

This commit is contained in:
hannathkadher
2024-10-09 10:52:11 +04:00
parent ec4bb9bc04
commit 7122ad5ac1

View File

@ -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