onChangeStart property
The onChangeStart callback will be called when the user starts to tap or drag the range slider. This callback is only used to notify the user about the start interaction and it does not update the range slider value.
The last interacted thumb value will be passed to this callback. The value will be double or date time.
SfRangeValues _values = SfRangeValues(4.0, 6.0);
@override
Widget build(BuildContext context) {
return Scaffold(
body: SfRangeSlider(
min: 0,
max: 10,
values: _values,
onChangeStart: (SfRangeValues startValue) {
print('Interaction start');
},
onChanged: (SfRangeValues newValues) {
setState(() {
_values = newValues;
});
},
),
);
}
See also: • The onChangeEnd callback used to notify the user about the interaction end. • The onChanged callback used to update the slider thumb value.
Implementation
final ValueChanged<SfRangeValues>? onChangeStart;