Add dividendOfRange parameter to FunctionSlider and related components for improved range handling

This commit is contained in:
Faris Armoush
2025-04-13 10:09:39 +03:00
parent 828db5d5e4
commit 60a1a9ad6f
4 changed files with 41 additions and 7 deletions

View File

@ -15,6 +15,7 @@ class SliderValueSelector extends StatelessWidget {
final void Function(String condition) onConditionChanged;
final void Function(double value) onSliderChanged;
final String unit;
final double dividendOfRange;
const SliderValueSelector({
required this.dialogType,
@ -25,6 +26,7 @@ class SliderValueSelector extends StatelessWidget {
required this.onSliderChanged,
required this.currentCondition,
required this.unit,
required this.dividendOfRange,
super.key,
});
@ -48,6 +50,7 @@ class SliderValueSelector extends StatelessWidget {
initialValue: initialValue,
range: sliderRange,
onChanged: onSliderChanged,
dividendOfRange: dividendOfRange,
),
],
);