added trailing commas.

This commit is contained in:
Faris Armoush
2025-04-13 12:29:38 +03:00
parent bfd3d4542e
commit cd9821679e

View File

@ -109,10 +109,12 @@ class _SidebarWidgetState extends State<SidebarWidget> {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text('Communities', Text(
'Communities',
style: Theme.of(context).textTheme.titleMedium?.copyWith( style: Theme.of(context).textTheme.titleMedium?.copyWith(
color: ColorsManager.blackColor, color: ColorsManager.blackColor,
)), ),
),
GestureDetector( GestureDetector(
onTap: () => _navigateToBlank(context), onTap: () => _navigateToBlank(context),
child: Container( child: Container(
@ -208,8 +210,7 @@ class _SidebarWidgetState extends State<SidebarWidget> {
}); });
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
@ -217,6 +218,7 @@ class _SidebarWidgetState extends State<SidebarWidget> {
.map((childSpace) => _buildSpaceTile(childSpace, community)) .map((childSpace) => _buildSpaceTile(childSpace, community))
.toList() .toList()
: [], : [],
)); ),
);
} }
} }