mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Add dividendOfRange parameter to FunctionSlider and related components for improved range handling
This commit is contained in:
@ -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,
|
||||
),
|
||||
],
|
||||
);
|
||||
|
Reference in New Issue
Block a user