mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
added trailing commas.
This commit is contained in:
@ -109,10 +109,12 @@ class _SidebarWidgetState extends State<SidebarWidget> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text('Communities',
|
Text(
|
||||||
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
'Communities',
|
||||||
color: ColorsManager.blackColor,
|
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
||||||
)),
|
color: ColorsManager.blackColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () => _navigateToBlank(context),
|
onTap: () => _navigateToBlank(context),
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -194,29 +196,29 @@ class _SidebarWidgetState extends State<SidebarWidget> {
|
|||||||
{int depth = 1}) {
|
{int depth = 1}) {
|
||||||
bool isExpandedSpace = _isSpaceOrChildSelected(space);
|
bool isExpandedSpace = _isSpaceOrChildSelected(space);
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(left: depth * 16.0),
|
padding: EdgeInsets.only(left: depth * 16.0),
|
||||||
child: SpaceTile(
|
child: SpaceTile(
|
||||||
title: space.name,
|
title: space.name,
|
||||||
key: ValueKey(space.uuid),
|
key: ValueKey(space.uuid),
|
||||||
isSelected: _selectedId == space.uuid,
|
isSelected: _selectedId == space.uuid,
|
||||||
initiallyExpanded: isExpandedSpace,
|
initiallyExpanded: isExpandedSpace,
|
||||||
onExpansionChanged: (expanded) {},
|
onExpansionChanged: (expanded) {},
|
||||||
onItemSelected: () {
|
onItemSelected: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
_selectedId = space.uuid;
|
_selectedId = space.uuid;
|
||||||
_selectedSpaceUuid = space.uuid;
|
_selectedSpaceUuid = space.uuid;
|
||||||
});
|
});
|
||||||
|
|
||||||
context.read<SpaceManagementBloc>().add(
|
context.read<SpaceManagementBloc>().add(
|
||||||
SelectSpaceEvent(
|
SelectSpaceEvent(selectedCommunity: community, selectedSpace: space),
|
||||||
selectedCommunity: community, selectedSpace: space),
|
);
|
||||||
);
|
},
|
||||||
},
|
children: space.children.isNotEmpty
|
||||||
children: space.children.isNotEmpty
|
? space.children
|
||||||
? space.children
|
.map((childSpace) => _buildSpaceTile(childSpace, community))
|
||||||
.map((childSpace) => _buildSpaceTile(childSpace, community))
|
.toList()
|
||||||
.toList()
|
: [],
|
||||||
: [],
|
),
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user