Update SliderValueSelector to improve text styling for unit and range labels

This commit is contained in:
Faris Armoush
2025-04-10 16:43:33 +03:00
parent a5d26d04eb
commit 49439816d5

View File

@ -83,7 +83,7 @@ class SliderValueSelector extends StatelessWidget {
filled: true,
fillColor: ColorsManager.textFieldGreyColor.withOpacity(0.5),
suffixText: unit,
hintStyle: context.textTheme.headlineMedium!.copyWith(
suffixStyle: context.textTheme.headlineMedium!.copyWith(
color: ColorsManager.primaryColorWithOpacity,
),
),
@ -94,14 +94,14 @@ class SliderValueSelector extends StatelessWidget {
children: [
Text(
'Min: ${sliderRange.$1}',
style: context.textTheme.bodySmall!.copyWith(
style: context.textTheme.labelSmall!.copyWith(
color: ColorsManager.lightGrayColor,
),
),
const Spacer(),
Text(
'Max: ${sliderRange.$2}',
style: context.textTheme.bodySmall!.copyWith(
style: context.textTheme.labelSmall!.copyWith(
color: ColorsManager.lightGrayColor,
),
),