Refactor text color assignment in CustomExpansionTileSpaceTree for improved readability.

This commit is contained in:
Faris Armoush
2025-04-16 14:47:19 +03:00
parent 3de7606a00
commit 0cc867a4ea

View File

@ -61,9 +61,8 @@ class CustomExpansionTileSpaceTree extends StatelessWidget {
_capitalizeFirstLetter(title), _capitalizeFirstLetter(title),
style: Theme.of(context).textTheme.bodySmall!.copyWith( style: Theme.of(context).textTheme.bodySmall!.copyWith(
color: isSelected color: isSelected
? ColorsManager ? ColorsManager.blackColor
.blackColor // Change color to black when selected : ColorsManager.lightGrayColor,
: ColorsManager.lightGrayColor, // Gray when not selected
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
), ),
), ),