mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
Refactor onItemSelected handling in CustomExpansionTileSpaceTree for improved readability.
This commit is contained in:
@ -52,11 +52,7 @@ class CustomExpansionTileSpaceTree extends StatelessWidget {
|
|||||||
_buildExpansionIcon(),
|
_buildExpansionIcon(),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: onItemSelected,
|
||||||
if (onItemSelected != null) {
|
|
||||||
onItemSelected!();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: Text(
|
child: Text(
|
||||||
_capitalizeFirstLetter(title),
|
_capitalizeFirstLetter(title),
|
||||||
style: Theme.of(context).textTheme.bodySmall!.copyWith(
|
style: Theme.of(context).textTheme.bodySmall!.copyWith(
|
||||||
|
Reference in New Issue
Block a user