diff --git a/lib/pages/space_tree/view/custom_expansion.dart b/lib/pages/space_tree/view/custom_expansion.dart index dc55cbe7..4aee79e9 100644 --- a/lib/pages/space_tree/view/custom_expansion.dart +++ b/lib/pages/space_tree/view/custom_expansion.dart @@ -52,11 +52,7 @@ class CustomExpansionTileSpaceTree extends StatelessWidget { _buildExpansionIcon(), Expanded( child: GestureDetector( - onTap: () { - if (onItemSelected != null) { - onItemSelected!(); - } - }, + onTap: onItemSelected, child: Text( _capitalizeFirstLetter(title), style: Theme.of(context).textTheme.bodySmall!.copyWith(