mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
Refactor text color assignment in CustomExpansionTileSpaceTree for improved readability.
This commit is contained in:
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user